VirtualMailManager/password.py
branchv0.7.x
changeset 664 b5cc967a45ad
parent 655 2bf68600e914
child 676 2bc11dada296
equal deleted inserted replaced
663:de435d1aa1c0 664:b5cc967a45ad
   293     else:
   293     else:
   294         digest = sha512.hexdigest() + b2a_hex(salt).decode()
   294         digest = sha512.hexdigest() + b2a_hex(salt).decode()
   295     return _format_digest(digest, scheme, encoding)
   295     return _format_digest(digest, scheme, encoding)
   296 
   296 
   297 _scheme_info = {
   297 _scheme_info = {
       
   298     'CLEAR': (_clear_hash, 0x2010df00),
   298     'CLEARTEXT': (_clear_hash, 0x10000f00),
   299     'CLEARTEXT': (_clear_hash, 0x10000f00),
   299     'CRAM-MD5': (_dovecotpw, 0x10000f00),
   300     'CRAM-MD5': (_dovecotpw, 0x10000f00),
   300     'CRYPT': (_crypt_hash, 0x10000f00),
   301     'CRYPT': (_crypt_hash, 0x10000f00),
   301     'DIGEST-MD5': (_md5_hash, 0x10000f00),
   302     'DIGEST-MD5': (_md5_hash, 0x10000f00),
   302     'HMAC-MD5': (_dovecotpw, 0x10000f00),
   303     'HMAC-MD5': (_dovecotpw, 0x10000f00),