You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 line
1.2 KiB

  1. """passlib.handlers.roundup - Roundup issue tracker hashes"""
  2. #=============================================================================
  3. # imports
  4. #=============================================================================
  5. # core
  6. import logging; log = logging.getLogger(__name__)
  7. # site
  8. # pkg
  9. import passlib.utils.handlers as uh
  10. from passlib.utils.compat import u
  11. # local
  12. __all__ = [
  13. "roundup_plaintext",
  14. "ldap_hex_md5",
  15. "ldap_hex_sha1",
  16. ]
  17. #=============================================================================
  18. #
  19. #=============================================================================
  20. roundup_plaintext = uh.PrefixWrapper("roundup_plaintext", "plaintext",
  21. prefix=u("{plaintext}"), lazy=True)
  22. # NOTE: these are here because they're currently only known to be used by roundup
  23. ldap_hex_md5 = uh.PrefixWrapper("ldap_hex_md5", "hex_md5", u("{MD5}"), lazy=True)
  24. ldap_hex_sha1 = uh.PrefixWrapper("ldap_hex_sha1", "hex_sha1", u("{SHA}"), lazy=True)
  25. #=============================================================================
  26. # eof
  27. #=============================================================================