This is a pretty common error message I've seen in OpenCart 3.0, due to a switch in the encryption library. There is a fix suggested in the forums here, though I haven't tried this myself:
viewtopic.php?f=198&t=204707&p=740186#p737628
If you prefer instead to try and switch back to the older OpenCart 2.3 version of the encryption library, you can make these edits:
Code: Select all
------------------------------------------------------------------------------
IN:
/system/library/encryption.php
REPLACE:
return strtr(base64_encode(openssl_encrypt($value, 'aes-128-cbc', hash('sha256', $key, true))), '+/=', '-_,');
WITH:
return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, hash('sha256', hash('sha256', $key, true), true), $value, MCRYPT_MODE_ECB)), '+/=', '-_,');
AND REPLACE:
return trim(openssl_decrypt(base64_decode(strtr($value, '-_,', '+/=')), 'aes-128-cbc', hash('sha256', $key, true)));
WITH:
return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, hash('sha256', hash('sha256', $key, true), true), base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB));
------------------------------------------------------------------------------