Skip to content

Instantly share code, notes, and snippets.

@pauloharaujos
Created November 1, 2019 14:40
Show Gist options
  • Save pauloharaujos/e76c749b311f95a02b5e28a7567c43c2 to your computer and use it in GitHub Desktop.
Save pauloharaujos/e76c749b311f95a02b5e28a7567c43c2 to your computer and use it in GitHub Desktop.
M2.3 – Sodium crypto adapter errors on unexpected input
Modify this file : vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
{
return "";
}
return $plainText;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment