Advertisement
cmsj

Untitled

Feb 27th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import passlib.hash
  2.  
  3. SUPPORTED_HASHERS = [passlib.hash.bcrypt,
  4.                      passlib.hash.scrypt,
  5.                      passlib.hash.sha512_crypt]
  6.  
  7.  
  8. _HASHER_IDENT_MAP = {}
  9.  
  10. for mod in SUPPORTED_HASHERS:
  11.     for ident in getattr(mod, 'ident_values', (mod.ident,)):
  12.         _HASHER_IDENT_MAP[ident] = mod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement