Fix another php-encryption version migration error
This commit is contained in:
parent
d5aff9ac31
commit
918f2e8593
|
@ -183,7 +183,7 @@ function dfrn_notify_post(App $a) {
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
try {
|
try {
|
||||||
$FinalKey = \Defuse\Crypto\Key::loadFromAsciiSafeString($final_key);
|
$FinalKey = \Defuse\Crypto\Key::loadFromAsciiSafeString(bintohex($final_key));
|
||||||
$data = \Defuse\Crypto\Crypto::decrypt(hex2bin($data), $FinalKey);
|
$data = \Defuse\Crypto\Crypto::decrypt(hex2bin($data), $FinalKey);
|
||||||
} catch (\Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException $ex) { // VERY IMPORTANT
|
} catch (\Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException $ex) { // VERY IMPORTANT
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue