Sha256: b3a28a9f60569ac13f9dd6de81c13befde86661876f87445ed7d4d48b120231b
Contents?: true
Size: 414 Bytes
Versions: 53
Compression:
Stored size: 414 Bytes
Contents
#!/usr/bin/env python3 ### WARNING ### # requires Python >= 3.3 import sys, crypt, getpass; # this script generate a password using salted SHA512 whitch is the default on debian wheezy cleartext = getpass.getpass("Password:") cleartext2 = getpass.getpass("Again:") if cleartext2 != cleartext: print ('Not matched!') sys.exit(1) salt = crypt.mksalt(crypt.METHOD_SHA512) print (crypt.crypt(cleartext, salt))
Version data entries
53 entries across 53 versions & 1 rubygems