X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fpassword.py;h=a0be03ed1ec7f1482b1964147c01deb32fe94b63;hp=3e0db0aaa36fb4ac50604a84cfa2f4ab7c109520;hb=ae460f25e34c912a644dd29c34d83389b31310f4;hpb=c135b310950098c192b4e8f17673604630c5fc30 diff --git a/mudpy/password.py b/mudpy/password.py index 3e0db0a..a0be03e 100644 --- a/mudpy/password.py +++ b/mudpy/password.py @@ -1,8 +1,8 @@ """Password hashing functions and constants for the mudpy engine.""" -# Copyright (c) 2004-2015 Jeremy Stanley . Permission -# to use, copy, modify, and distribute this software is granted under -# terms provided in the LICENSE file distributed with this software. +# 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. import passlib.context @@ -12,7 +12,7 @@ _CONTEXT = passlib.context.CryptContext( def create(password): - return _CONTEXT.encrypt(password) + return _CONTEXT.hash(password) def verify(password, encoded_hash):