423baff73b
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
"""
|
|
passlib.utils.md4 - DEPRECATED MODULE, WILL BE REMOVED IN 2.0
|
|
|
|
MD4 should now be looked up through ``passlib.crypto.digest.lookup_hash("md4").const``,
|
|
which provides unified handling stdlib implementation (if present).
|
|
"""
|
|
#=============================================================================
|
|
# issue deprecation warning for module
|
|
#=============================================================================
|
|
from warnings import warn
|
|
warn("the module 'passlib.utils.md4' is deprecated as of Passlib 1.7, "
|
|
"and will be removed in Passlib 2.0, please use "
|
|
"'lookup_hash(\"md4\").const()' from 'passlib.crypto' instead",
|
|
DeprecationWarning)
|
|
|
|
#=============================================================================
|
|
# backwards compat exports
|
|
#=============================================================================
|
|
__all__ = ["md4"]
|
|
|
|
# this should use hashlib version if available,
|
|
# and fall back to builtin version.
|
|
from passlib.crypto.digest import lookup_hash
|
|
md4 = lookup_hash("md4").const
|
|
del lookup_hash
|
|
|
|
#=============================================================================
|
|
# eof
|
|
#=============================================================================
|