use legacyDecrypt to decrypt key file like the previous files_encryption

remotes/origin/stable6
Florin Peter 2013-05-31 01:35:48 +07:00
parent 4f9cbadfa4
commit 986e9dd362
2 changed files with 2 additions and 2 deletions

@ -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);