Update 'backup/generate-config.py'

pull/4/head
drunkendog 2022-12-19 17:44:03 +00:00
parent c746e72cbe
commit a858268120
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import socket
import hashlib
import os
import getpass
server_hostname = input("Enter backup server subdomain: ").rstrip()
hostname = input("Enter subdomain: ").rstrip()
@ -12,7 +13,7 @@ s.close()
assert socket.gethostbyname(hostname + ".162536.xyz") == ip_address, "Hostname does not resolve to ip!"
secret_seed = input("Enter passphrase: ").rstrip()
secret_seed = getpass.getpass("Enter passphrase: ").rstrip()
salted_secret_seed = hostname + secret_seed
salted_hash_value = hashlib.sha512(salted_secret_seed.encode())