0 down vote favorite
share [g+] share [fb] share [tw]
The following function works perfect in PHP. How can it be translated in
Ruby on Rails.
Please note that both privateKey and iv are 32 characters long.
mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $privateKey, base64_decode($enc), MCRYPT_MODE_CBC, $iv)
I tried to use the following in
Ruby but got
…