diff options
author | Hostmaster of the Day <root@localhost> | 2011-04-01 02:30:27 +0200 |
---|---|---|
committer | Hostmaster of the Day <root@localhost> | 2011-04-01 02:30:27 +0200 |
commit | 90cd412923fedeac8f5a4abb9b17ba787990cc53 (patch) | |
tree | e1fa2547b2e17dbed20d8b1cdd7ce3c3ff9442d6 /gen_password.py | |
parent | 153de55dfd076261dcc6637054a67caac12a1dcb (diff) | |
download | dev-account-90cd412923fedeac8f5a4abb9b17ba787990cc53.tar.gz dev-account-90cd412923fedeac8f5a4abb9b17ba787990cc53.tar.xz dev-account-90cd412923fedeac8f5a4abb9b17ba787990cc53.zip |
commited uncommited changes
Diffstat (limited to 'gen_password.py')
-rw-r--r-- | gen_password.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gen_password.py b/gen_password.py deleted file mode 100644 index 19b7781..0000000 --- a/gen_password.py +++ /dev/null @@ -1,6 +0,0 @@ -import base64, cracklib, sha, string, os - -# generate a htpasswd compatible sha1 digest in base64 encoding -# see: http://httpd.apache.org/docs/2.2/misc/password_encryptions.html -def generate_sha_base64(password): - print "{SHA}" + base64.encodestring(sha.new(password).digest()).rstrip('\n') |