Implemented support for Apache SHA1 (Issue #1881)

This commit is contained in:
Miroslav Stampar
2017-10-13 15:19:50 +02:00
parent 12b331170b
commit a1dd7363d4
2 changed files with 20 additions and 16 deletions

View File

@@ -128,6 +128,7 @@ class HASH:
WORDPRESS = r'(?i)\A\$P\$[./0-9A-Za-z]{31}\Z'
APACHE_MD5_CRYPT = r'(?i)\A\$apr1\$.{1,8}\$[./a-z0-9]+\Z'
UNIX_MD5_CRYPT = r'(?i)\A\$1\$.{1,8}\$[./a-z0-9]+\Z'
APACHE_SHA1 = r'(?i)\A\{SHA\}[a-z0-9+/]+={0,2}\Z'
# Reference: http://www.zytrax.com/tech/web/mobile_ids.html
class MOBILES: