Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Using openssl instead of mcrypt #12

#1

I decided to switch to openssl for now, since I don't know when the master branch with sodium will be released, but having some problem figuring out what to write in the config-file.

Right now my config file looks like the following, except I use a different key but of the same byte-length.

As can be seen I have set mode to "null" because I don't know what to put there. Can it be null or can someone tell me what to type instead?

return array(
    'default' => array(
        'type'   => 'openssl',
        'key' => 'Uc*Vr5yF.jjFo/Tn3|HBX@6E€HRRMc',
        'cipher' => 'AES-256-CBC',
        'mode' => null,
    ),
);
  • replies 2
  • views 61
  • likes 0
#2

Mode can be empty...your "cipher" is wrong. use 'cipher' => Encrypt_Engine_Openssl::AES_256_CBC instead

#3

The Encrypt_Engine_Openssl::AES_256_CBC constant does not exist for me so I guess you're using a different branch than master. So I guess the way to go for now is to write it as I have done.