mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-08 15:47:24 +02:00
pylink-mkpasswd: use hash() instead of encrypt()
- This function was renamed in Passlib 1.7, deprecating the old name. - Depend accordingly on Passlib >= 1.7.0
This commit is contained in:
parent
eba5d91299
commit
3d5e7cd1c1
@ -43,7 +43,7 @@ If you are a developer and want to help make PyLink more portable, patches are w
|
|||||||
* Setuptools (`pip3 install setuptools`)
|
* Setuptools (`pip3 install setuptools`)
|
||||||
* PyYAML (`pip3 install pyyaml`)
|
* PyYAML (`pip3 install pyyaml`)
|
||||||
* ircmatch (`pip3 install ircmatch`)
|
* ircmatch (`pip3 install ircmatch`)
|
||||||
* *For hashed password support*: Passlib (`pip3 install passlib`)
|
* *For hashed password support*: Passlib >= 1.7.0 (`pip3 install passlib`)
|
||||||
* *For better PID file tracking (i.e. removing stale PID files after a crash)*: psutil (`pip3 install psutil`)
|
* *For better PID file tracking (i.e. removing stale PID files after a crash)*: psutil (`pip3 install psutil`)
|
||||||
* *For the servprotect plugin*: cachetools (`pip3 install cachetools`)
|
* *For the servprotect plugin*: cachetools (`pip3 install cachetools`)
|
||||||
|
|
||||||
|
@ -23,4 +23,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
password = password.strip()
|
password = password.strip()
|
||||||
assert password, "Password cannot be empty!"
|
assert password, "Password cannot be empty!"
|
||||||
print(pwd_context.encrypt(password))
|
print(pwd_context.hash(password))
|
||||||
|
2
setup.py
2
setup.py
@ -85,7 +85,7 @@ setup(
|
|||||||
install_requires=['pyyaml', 'ircmatch'],
|
install_requires=['pyyaml', 'ircmatch'],
|
||||||
|
|
||||||
extras_require={
|
extras_require={
|
||||||
'password-hashing': ['passlib'],
|
'password-hashing': ['passlib>=1.7.0'],
|
||||||
'cron-support': ['psutil'],
|
'cron-support': ['psutil'],
|
||||||
'servprotect': ['expiringdict>=1.1.4'],
|
'servprotect': ['expiringdict>=1.1.4'],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user