I need a PHP function, AES256_encode($dataToEcrypt) to encrypt the $data into AES-256 and another one AES256_decode($encryptedData) do the opposite. Does anyone know what code should this functions have?
I need a PHP function, AES256_encode($dataToEcrypt) to encrypt the $data into AES-256 and another
Share
Look at the mcrypt module
AES-Rijndael example taken from here
This is the decrypt function