use legacyDecrypt to decrypt key file like the previous files_encryption
This commit is contained in:
parent
4f9cbadfa4
commit
986e9dd362
|
@ -76,7 +76,7 @@ class Hooks {
|
|||
&& $encLegacyKey = $userView->file_get_contents('encryption.key')
|
||||
) {
|
||||
|
||||
$plainLegacyKey = Crypt::legacyBlockDecrypt($encLegacyKey, $params['password']);
|
||||
$plainLegacyKey = Crypt::legacyDecrypt($encLegacyKey, $params['password']);
|
||||
|
||||
$session->setLegacyKey($plainLegacyKey);
|
||||
|
||||
|
|
|
@ -608,7 +608,7 @@ class Crypt {
|
|||
*
|
||||
* This function decrypts an content
|
||||
*/
|
||||
private static function legacyDecrypt($content, $passphrase = '') {
|
||||
public static function legacyDecrypt($content, $passphrase = '') {
|
||||
|
||||
$bf = self::getBlowfish($passphrase);
|
||||
|
||||
|
|
Loading…
Reference in New Issue