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.
 
 
 
 

69 rivejä
3.7 KiB

  1. """
  2. passlib.hash - proxy object mapping hash scheme names -> handlers
  3. ==================
  4. ***** NOTICE *****
  5. ==================
  6. This module does not actually contain any hashes. This file
  7. is a stub that replaces itself with a proxy object.
  8. This proxy object (passlib.registry._PasslibRegistryProxy)
  9. handles lazy-loading hashes as they are requested.
  10. The actual implementation of the various hashes is store elsewhere,
  11. mainly in the submodules of the ``passlib.handlers`` subpackage.
  12. """
  13. #=============================================================================
  14. # import proxy object and replace this module
  15. #=============================================================================
  16. # XXX: if any platform has problem w/ lazy modules, could support 'non-lazy'
  17. # version which just imports all schemes known to list_crypt_handlers()
  18. from passlib.registry import _proxy
  19. import sys
  20. sys.modules[__name__] = _proxy
  21. #=============================================================================
  22. # HACK: the following bit of code is unreachable, but it's presence seems to
  23. # help make autocomplete work for certain IDEs such as PyCharm.
  24. # this list is automatically regenerated using $SOURCE/admin/regen.py
  25. #=============================================================================
  26. #----------------------------------------------------
  27. # begin autocomplete hack (autogenerated 2016-11-10)
  28. #----------------------------------------------------
  29. if False:
  30. from passlib.handlers.argon2 import argon2
  31. from passlib.handlers.bcrypt import bcrypt, bcrypt_sha256
  32. from passlib.handlers.cisco import cisco_asa, cisco_pix, cisco_type7
  33. from passlib.handlers.des_crypt import bigcrypt, bsdi_crypt, crypt16, des_crypt
  34. from passlib.handlers.digests import hex_md4, hex_md5, hex_sha1, hex_sha256, hex_sha512, htdigest
  35. from passlib.handlers.django import django_bcrypt, django_bcrypt_sha256, django_des_crypt, django_disabled, django_pbkdf2_sha1, django_pbkdf2_sha256, django_salted_md5, django_salted_sha1
  36. from passlib.handlers.fshp import fshp
  37. from passlib.handlers.ldap_digests import ldap_bcrypt, ldap_bsdi_crypt, ldap_des_crypt, ldap_md5, ldap_md5_crypt, ldap_plaintext, ldap_salted_md5, ldap_salted_sha1, ldap_salted_sha256, ldap_salted_sha512, ldap_sha1, ldap_sha1_crypt, ldap_sha256_crypt, ldap_sha512_crypt
  38. from passlib.handlers.md5_crypt import apr_md5_crypt, md5_crypt
  39. from passlib.handlers.misc import plaintext, unix_disabled, unix_fallback
  40. from passlib.handlers.mssql import mssql2000, mssql2005
  41. from passlib.handlers.mysql import mysql323, mysql41
  42. from passlib.handlers.oracle import oracle10, oracle11
  43. from passlib.handlers.pbkdf2 import atlassian_pbkdf2_sha1, cta_pbkdf2_sha1, dlitz_pbkdf2_sha1, grub_pbkdf2_sha512, ldap_pbkdf2_sha1, ldap_pbkdf2_sha256, ldap_pbkdf2_sha512, pbkdf2_sha1, pbkdf2_sha256, pbkdf2_sha512
  44. from passlib.handlers.phpass import phpass
  45. from passlib.handlers.postgres import postgres_md5
  46. from passlib.handlers.roundup import ldap_hex_md5, ldap_hex_sha1, roundup_plaintext
  47. from passlib.handlers.scram import scram
  48. from passlib.handlers.scrypt import scrypt
  49. from passlib.handlers.sha1_crypt import sha1_crypt
  50. from passlib.handlers.sha2_crypt import sha256_crypt, sha512_crypt
  51. from passlib.handlers.sun_md5_crypt import sun_md5_crypt
  52. from passlib.handlers.windows import bsd_nthash, lmhash, msdcc, msdcc2, nthash
  53. #----------------------------------------------------
  54. # end autocomplete hack
  55. #----------------------------------------------------
  56. #=============================================================================
  57. # eoc
  58. #=============================================================================