use legacyDecrypt to decrypt key file like the previous files_encryption

This commit is contained in:
Florin Peter 2013-05-31 01:35:48 +02:00
parent 4f9cbadfa4
commit 986e9dd362
2 changed files with 2 additions and 2 deletions

View File

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

View File

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