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 lines
1.2 KiB

  1. """
  2. passlib.utils.md4 - DEPRECATED MODULE, WILL BE REMOVED IN 2.0
  3. MD4 should now be looked up through ``passlib.crypto.digest.lookup_hash("md4").const``,
  4. which provides unified handling stdlib implementation (if present).
  5. """
  6. #=============================================================================
  7. # issue deprecation warning for module
  8. #=============================================================================
  9. from warnings import warn
  10. warn("the module 'passlib.utils.md4' is deprecated as of Passlib 1.7, "
  11. "and will be removed in Passlib 2.0, please use "
  12. "'lookup_hash(\"md4\").const()' from 'passlib.crypto' instead",
  13. DeprecationWarning)
  14. #=============================================================================
  15. # backwards compat exports
  16. #=============================================================================
  17. __all__ = ["md4"]
  18. # this should use hashlib version if available,
  19. # and fall back to builtin version.
  20. from passlib.crypto.digest import lookup_hash
  21. md4 = lookup_hash("md4").const
  22. del lookup_hash
  23. #=============================================================================
  24. # eof
  25. #=============================================================================