Update for #1881 (unix_md5_passwd and apache_md5_passwd)

This commit is contained in:
Miroslav Stampar
2017-10-12 15:05:32 +02:00
parent f9de8a8b5d
commit 3ca4b7c0a9
2 changed files with 81 additions and 1 deletions

View File

@@ -126,6 +126,8 @@ class HASH:
SHA512_GENERIC = r'(?i)\A[0-9a-f]{64}\Z'
CRYPT_GENERIC = r'(?i)\A(?!\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\Z)(?![0-9]+\Z)[./0-9A-Za-z]{13}\Z'
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'
# Reference: http://www.zytrax.com/tech/web/mobile_ids.html
class MOBILES: