"""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.
def create(password):
- return _CONTEXT.encrypt(password)
+ return _CONTEXT.hash(password)
def verify(password, encoded_hash):