diff options
author | Scott Arciszewski <scott@arciszewski.me> | 2014-03-24 08:57:33 -0400 |
---|---|---|
committer | Scott Arciszewski <scott@arciszewski.me> | 2014-03-24 08:57:33 -0400 |
commit | 09cc0205352ce02ea5e4d3dc36d12c89fbe3db1a (patch) | |
tree | b9c7c84334391676720317d55eaab47a7f282da1 /apps | |
parent | 36da3bc35908d9324397ba5fac5f2a4228bea51e (diff) | |
download | nextcloud-server-09cc0205352ce02ea5e4d3dc36d12c89fbe3db1a.tar.gz nextcloud-server-09cc0205352ce02ea5e4d3dc36d12c89fbe3db1a.zip |
Update crypt.php
Use a 256-bit random value
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_encryption/lib/crypt.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php index e38a4ef7125..a4f7bd35497 100755 --- a/apps/files_encryption/lib/crypt.php +++ b/apps/files_encryption/lib/crypt.php @@ -497,13 +497,13 @@ class Crypt { }
/**
- * @brief Generate a pseudo random 2048-bit 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(256, $strong))) {
+ if ($key = base64_encode(openssl_random_pseudo_bytes(32, $strong))) {
if (!$strong) {
|