diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-03-20 16:31:12 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-03-20 16:31:12 +0100 |
commit | 2c561c9c5072ce82e06bd5ab2c4ee81bc5d09d59 (patch) | |
tree | a34586bf389cc8011490031bba497129361655a3 /lib/public/util.php | |
parent | 316a22b46315a389e38cd9f1e320f3e1f0541d68 (diff) | |
parent | d95fde39248e8c4083c14788fe3a327a60611b47 (diff) | |
download | nextcloud-server-2c561c9c5072ce82e06bd5ab2c4ee81bc5d09d59.tar.gz nextcloud-server-2c561c9c5072ce82e06bd5ab2c4ee81bc5d09d59.zip |
Merge pull request #7794 from owncloud/extstorage-obfuscatepasswords
Obfuscate passwords in ext storage config
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index a159bf1423c..5cc7f0f4676 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -492,4 +492,13 @@ class Util { public static function isValidFileName($file) { return \OC_Util::isValidFileName($file); } + + /** + * @brief Generates a cryptographic secure pseudo-random string + * @param Int $length of the random string + * @return String + */ + public static function generateRandomBytes($length = 30) { + return \OC_Util::generateRandomBytes($length); + } } |