Adding support for DJANGO_MD5 and DJANGO_SHA1 (Issue #1881)

This commit is contained in:
Miroslav Stampar
2017-10-20 13:56:47 +02:00
parent 7c874350d2
commit 9ae713bcec
2 changed files with 29 additions and 3 deletions

View File

@@ -136,6 +136,8 @@ class HASH:
SSHA = r'\A\{SSHA\}[a-zA-Z0-9+/]+={0,2}\Z'
SSHA256 = r'\A\{SSHA256\}[a-zA-Z0-9+/]+={0,2}\Z'
SSHA512 = r'\A\{SSHA512\}[a-zA-Z0-9+/]+={0,2}\Z'
DJANGO_MD5 = r'\Amd5\$[^$]+\$[0-9a-f]{32}\Z'
DJANGO_SHA1 = r'\Asha1\$[^$]+\$[0-9a-f]{40}\Z'
# Reference: http://www.zytrax.com/tech/web/mobile_ids.html
class MOBILES: