Ruby script to encrypt strings with MD5 and SHA256