diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-08 17:49:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 17:49:52 +0200 |
commit | c28fe270b6b53c86dabce47cc15e9f49eb0b6d12 (patch) | |
tree | b2d46d5921727df1d40f791c654eaaa8630f7b19 /lib/public | |
parent | 5213c56197bd36f66351260632c4d5cb88ccafec (diff) | |
parent | f2a2b34e4639e88f8d948a388a51f010212b42a3 (diff) | |
download | nextcloud-server-c28fe270b6b53c86dabce47cc15e9f49eb0b6d12.tar.gz nextcloud-server-c28fe270b6b53c86dabce47cc15e9f49eb0b6d12.zip |
Merge pull request #4727 from stffabi/IncreaseDeviceEntropy
Increase device password entropy.
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Security/ISecureRandom.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Security/ISecureRandom.php b/lib/public/Security/ISecureRandom.php index c60529ef803..14190639f44 100644 --- a/lib/public/Security/ISecureRandom.php +++ b/lib/public/Security/ISecureRandom.php @@ -45,6 +45,13 @@ interface ISecureRandom { const CHAR_SYMBOLS = '!\"#$%&\\\'()* +,-./:;<=>?@[\]^_`{|}~'; /** + * Characters that can be used for <code>generate($length, $characters)</code>, to + * generate human readable random strings. Lower- and upper-case characters and digits + * are included. Characters which are ambiguous are excluded, such as I, l, and 1 and so on. + */ + const CHAR_HUMAN_READABLE = "abcdefgijkmnopqrstwxyzABCDEFGHJKLMNPQRSTWXYZ23456789"; + + /** * Convenience method to get a low strength random number generator. * * Low Strength should be used anywhere that random strings are needed |