Problem/Motivation
Same thing that was reported on #2970955 when encrypting exists for when you try to decrypt non-string values with defuse/php-encryption >= 2.2.0.
TypeError: String expected for argument 1. Integer given instead. in Defuse\Crypto\Crypto::decrypt() (line 98 of /vendor/defuse/php-encryption/src/Crypto.php).
Proposed resolution
The 2.2.0 version of defuse/php-encryption introduced type checking. As we should only be passing string values Crypto::decrypt() the solution should be to just cast to a string.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | real_aes-decrypt-fatal-error-2973744-2-8.patch | 763 bytes | dscl |
Comments
Comment #2
dscl commentedComment #3
dscl commentedComment #4
dscl commentedComment #5
jfhovinne commentedGot the same fatal error; patch fixes the issue.
Comment #7
rlhawkComment #9
manuel garcia commentedJust hit this, thanks for the patch. Since this is a major... can we get cut a new release for it please?
Comment #10
rlhawkCertainly. Thanks for the reminder.
https://www.drupal.org/project/real_aes/releases/8.x-2.2
Comment #11
manuel garcia commentedThanks!