Merge pull request #7807 from sarciszewski/patch-1

Update crypt.php
This commit is contained in:
Lukas Reschke 2014-04-11 19:19:02 +02:00
commit e704bc2bf0
1 changed files with 2 additions and 2 deletions

View File

@ -497,13 +497,13 @@ class Crypt {
}
/**
* @brief Generate a pseudo random 1024kb ASCII key, used as file key
* @brief Generate a pseudo random 256-bit ASCII key, used as file key
* @returns $key Generated key
*/
public static function generateKey() {
// Generate key
if ($key = base64_encode(openssl_random_pseudo_bytes(183, $strong))) {
if ($key = base64_encode(openssl_random_pseudo_bytes(32, $strong))) {
if (!$strong) {