Decrypt and encrypt returns false

Created on 7 July 2020, over 4 years ago
Updated 27 March 2024, 9 months ago

The encrypt and decrypt on the RealAESEncryptionMethod currently return FALSE when an exception is thrown while decrypting, for example when using an incorrect key. The \Drupal\encrypt\EncryptionMethodInterface however states that the encrypt and decrypt methods should always return a string value.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands arkener

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia sime Melbourne

    Keywords the weary google travellers, my colleague was having these errors locally for months, while I was not having them at all. It makes sense now I see that GovCMS updated to real_aes 2.5 when he started having the issues. It turns out that the reason I wasn't having these issues because of this in my local settings.php.

    $config['tfa.settings']['reset_pass_skip_enabled'] = TRUE;
    $config['tfa.settings']['enabled'] = FALSE;
    
Production build 0.71.5 2024