Skip to content
Snippets Groups Projects
Commit e704bc2b authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #7807 from sarciszewski/patch-1

Update crypt.php
parents 10dc1de6 09cc0205
No related branches found
No related tags found
No related merge requests found
...@@ -497,13 +497,13 @@ class Crypt { ...@@ -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 * @returns $key Generated key
*/ */
public static function generateKey() { public static function generateKey() {
// Generate key // Generate key
if ($key = base64_encode(openssl_random_pseudo_bytes(183, $strong))) { if ($key = base64_encode(openssl_random_pseudo_bytes(32, $strong))) {
if (!$strong) { if (!$strong) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment