From 50b430ee7cadd6be1520d63acdac27bc06581e09 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 3 Sep 2014 11:03:27 +0200 Subject: Add char consts, hash the specified password for the HMAC --- lib/public/security/isecurerandom.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/public/security') 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 @@ -20,6 +20,14 @@ namespace OCP\Security; */ interface ISecureRandom { + /** + * Flags for characters that can be used for generate($length, $characters) + */ + 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. * -- cgit v1.2.3