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

Version Path
kameleon-builder-2.10.11 contrib/scripts/create_passwd.py
kameleon-builder-2.10.10 contrib/scripts/create_passwd.py
kameleon-builder-2.10.9 contrib/scripts/create_passwd.py
kameleon-builder-2.10.8 contrib/scripts/create_passwd.py
kameleon-builder-2.10.7 contrib/scripts/create_passwd.py
kameleon-builder-2.10.6 contrib/scripts/create_passwd.py
kameleon-builder-2.10.5 contrib/scripts/create_passwd.py
kameleon-builder-2.10.4 contrib/scripts/create_passwd.py
kameleon-builder-2.10.3 contrib/scripts/create_passwd.py
kameleon-builder-2.10.2 contrib/scripts/create_passwd.py
kameleon-builder-2.10.1 contrib/scripts/create_passwd.py
kameleon-builder-2.9.4 contrib/scripts/create_passwd.py
kameleon-builder-2.9.2 contrib/scripts/create_passwd.py
kameleon-builder-2.9.1 contrib/scripts/create_passwd.py
kameleon-builder-2.9.0 contrib/scripts/create_passwd.py
kameleon-builder-2.8.3 contrib/scripts/create_passwd.py
kameleon-builder-2.8.2 contrib/scripts/create_passwd.py
kameleon-builder-2.8.1 contrib/scripts/create_passwd.py
kameleon-builder-2.7.8 contrib/scripts/create_passwd.py
kameleon-builder-2.7.7 contrib/scripts/create_passwd.py