diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/security/isecurerandom.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/security/isecurerandom.php b/lib/public/security/isecurerandom.php index ae6e1d58451..8856b457804 100644 --- a/lib/public/security/isecurerandom.php +++ b/lib/public/security/isecurerandom.php @@ -21,6 +21,14 @@ namespace OCP\Security; interface ISecureRandom { /** + * Flags for characters that can be used for <code>generate($length, $characters)</code> + */ + const CHAR_UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + const CHAR_LOWER = 'abcdefghijklmnopqrstuvwxyz'; + const CHAR_DIGITS = '0123456789'; + const CHAR_SYMBOLS = 'CHAR_SYMBOLS'; + + /** * Convenience method to get a low strength random number generator. * * Low Strength should be used anywhere that random strings are needed |