You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example "Example #2 AES Authenticated Encryption example prior to PHP 7.1" is wrong and insecure, in the way that the hmac doesn't consider the IV. That means that it's possible take an encrypted and authenticated value, change its IV (the first bytes) and still pass the hmac check.
The text was updated successfully, but these errors were encountered:
From manual page: https://php.net/function.openssl-encrypt
The example "Example #2 AES Authenticated Encryption example prior to PHP 7.1" is wrong and insecure, in the way that the hmac doesn't consider the IV. That means that it's possible take an encrypted and authenticated value, change its IV (the first bytes) and still pass the hmac check.
The text was updated successfully, but these errors were encountered: