In mySql I do, hex(AES_ENCRYPT('mytext','mykeystring'))
. This gives me a string with characters, rather than some unreadable things.
How can I do something like this in php? Is there a built in function that'll let me do this? Just like mySql has hex
and aes_encrypt
with a password/salt
.
I'm not looking for exact aes encryption in php. Anything that returns a string of alphabets and numbers and that isnt easy to crack will do (has salt)