3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01: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:
James Lu 2019-06-07 14:25:22 -07:00
parent eba5d91299
commit 3d5e7cd1c1
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ If you are a developer and want to help make PyLink more portable, patches are w
* Setuptools (`pip3 install setuptools`)
* PyYAML (`pip3 install pyyaml`)
* 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 the servprotect plugin*: cachetools (`pip3 install cachetools`)

View File

@ -23,4 +23,4 @@ if __name__ == '__main__':
password = password.strip()
assert password, "Password cannot be empty!"
print(pwd_context.encrypt(password))
print(pwd_context.hash(password))

View File

@ -85,7 +85,7 @@ setup(
install_requires=['pyyaml', 'ircmatch'],
extras_require={
'password-hashing': ['passlib'],
'password-hashing': ['passlib>=1.7.0'],
'cron-support': ['psutil'],
'servprotect': ['expiringdict>=1.1.4'],
},