md5 and sha1 might get deprecated - it's cleaner/better to use that hash method and apply the algorithm there.