summaryrefslogtreecommitdiff
path: root/passlib/utils/__init__.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2013-02-05 19:13:27 -0500
committerEli Collins <elic@assurancetechnologies.com>2013-02-05 19:13:27 -0500
commitcd93f80e329c5b32f48ca6cbe8f87b168bff57ac (patch)
tree4e62ff1b37611e9b4a61805ee4444f4ac09db6ed /passlib/utils/__init__.py
parent7a05e12e14c0782b1a1a5f8ff9d4901564648ee3 (diff)
downloadpasslib-cd93f80e329c5b32f48ca6cbe8f87b168bff57ac.tar.gz
initial stab at new password generator, with diceware support
Diffstat (limited to 'passlib/utils/__init__.py')
-rw-r--r--passlib/utils/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py
index 654124e..9cd3cda 100644
--- a/passlib/utils/__init__.py
+++ b/passlib/utils/__init__.py
@@ -1539,6 +1539,8 @@ def getrandstr(rng, charset, count):
_52charset = '2346789ABCDEFGHJKMNPQRTUVWXYZabcdefghjkmnpqrstuvwxyz'
+@deprecated_function(deprecated="1.7", removed="2.0",
+ replacement="passlib.pwd.generate()")
def generate_password(size=10, charset=_52charset):
"""generate random password using given length & charset