So I have been browsing the internet, and came across the MySQL built-in function AES_ENCRYPT. It doesn\'t seem too hard to use, but some sources tell me to store the encryp
If you need to use VARCHAR, rather than BLOB, then convert the encrypted binary to Base64 which only uses printable characters and can be safely stored as VARCHAR. Of course you will need to convert it back from Base64 to binary before decrypting.