login is now configured in the ini file instead of being hardcoded

This commit is contained in:
azivner
2017-06-13 22:21:31 -04:00
parent 6efe28c283
commit 820768c572
3 changed files with 39 additions and 7 deletions

18
generate-password.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/python
import bcrypt # pip install bcrypt
import getpass
password1 = getpass.getpass()
print('Repeat the same password:')
password2 = getpass.getpass()
if password1 == password2:
salt = bcrypt.gensalt()
print('Generated hash:')
print(bcrypt.hashpw(password1, salt))
else:
print('Entered passwords are not identical!')