summaryrefslogtreecommitdiffstats
path: root/lib/private/security/crypto.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/security/crypto.php')
-rw-r--r--lib/private/security/crypto.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/security/crypto.php b/lib/private/security/crypto.php
index 46d0c750b2f..3c3ffb47398 100644
--- a/lib/private/security/crypto.php
+++ b/lib/private/security/crypto.php
@@ -3,8 +3,9 @@
* @author Andreas Fischer <bantu@owncloud.com>
* @author Lukas Reschke <lukas@owncloud.com>
* @author Morris Jobke <hey@morrisjobke.de>
+ * @author Roeland Jago Douma <rullzer@owncloud.com>
*
- * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
@@ -90,7 +91,7 @@ class Crypto implements ICrypto {
}
$this->cipher->setPassword($password);
- $iv = $this->random->getLowStrengthGenerator()->generate($this->ivLength);
+ $iv = $this->random->generate($this->ivLength);
$this->cipher->setIV($iv);
$ciphertext = bin2hex($this->cipher->encrypt($plaintext));