Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For different development processes I use console/terminal to encrypt simple strings via OpenSSL and additionally this Drupal module with a custom drush plugin for Drupal projects. The Encryption results between these two implementations (OpenSSL and this AES module) are differential. I suspect it is because of the different ways of padding and block cipher. Is there an equivalent OpenSSL command to this module?
Example => echo -n "simple aes test" | openssl enc -e -base64 -aes-128-cbc -a -salt
Thank you and best regards
Comments
Comment #2
dpovshed CreditAttribution: dpovshed as a volunteer and commentedMost likely you're right about the padding information. Also I would recommend to you to ckeck following options: 1) pass IV parameter to the openssl; 2) check out Key+Encrypt module combination as mentioned in #2325569: Move functionality from AES Encryption to Key and Encrypt modules