X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fpassword.py;fp=mudpy%2Fpassword.py;h=a0be03ed1ec7f1482b1964147c01deb32fe94b63;hp=f5638cb097bf8dccebde3b9879e3e6099c2b04d4;hb=ae460f25e34c912a644dd29c34d83389b31310f4;hpb=b64bdabe02e5d30113df5052050cfb9b62683a74 diff --git a/mudpy/password.py b/mudpy/password.py index f5638cb..a0be03e 100644 --- a/mudpy/password.py +++ b/mudpy/password.py @@ -1,6 +1,6 @@ """Password hashing functions and constants for the mudpy engine.""" -# Copyright (c) 2004-2017 mudpy authors. Permission to use, copy, +# Copyright (c) 2004-2019 mudpy authors. Permission to use, copy, # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. @@ -12,7 +12,7 @@ _CONTEXT = passlib.context.CryptContext( def create(password): - return _CONTEXT.encrypt(password) + return _CONTEXT.hash(password) def verify(password, encoded_hash):