This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For the queasy, this is MIT licensed. See comment at the end. | |
module MySQLEncryption | |
# Mimics MySQL's AES_ENCRYPT() and AES_DECRYPT() encryption functions | |
def mysql_encrypt(s, key) | |
encrypt(s, mysql_key(key)) | |
end | |
def mysql_decrypt(s, key) |