summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-11 19:19:02 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-04-11 19:19:02 +0200
commite704bc2bf01e8db49634bd1ec9b9dbd11afc246d (patch)
tree9f80db3490a7b74a425e942fa7f6867e30514214 /apps
parent10dc1de644cab93d72daf506e645c113d53676a3 (diff)
parent09cc0205352ce02ea5e4d3dc36d12c89fbe3db1a (diff)
downloadnextcloud-server-e704bc2bf01e8db49634bd1ec9b9dbd11afc246d.tar.gz
nextcloud-server-e704bc2bf01e8db49634bd1ec9b9dbd11afc246d.zip
Merge pull request #7807 from sarciszewski/patch-1
Update crypt.php
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_encryption/lib/crypt.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php
index caca13acece..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 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) {