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:
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`)
|
||||
* 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`)
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user