1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 22:18:40 +00:00

Revert "Allow encrypted passwords"

This reverts commit 505b3b198e.
This commit is contained in:
Fabian Affolter
2016-03-19 22:19:08 +01:00
parent 505b3b198e
commit bb658412c4
2 changed files with 6 additions and 33 deletions

View File

@@ -1,15 +0,0 @@
#!/usr/bin/python3
"""Generate hashes from given strings."""
import getpass
from passlib import hash
response1 = getpass.getpass('Please enter your string/password/API key: ')
response2 = getpass.getpass('Please enter the string/password/API key again: ')
hashed = hash.sha256_crypt.encrypt(response1)
if hash.sha256_crypt.verify(response2, hashed):
print('Put the hash in your configuration.yaml file.')
print(hashed)
else:
print('No match! Please try again.')