# Created 2019-09-11 by NGnius from hashlib import sha512 password = input('password: ') with open('.token', 'w') as f: f.write(sha512(password.encode()).hexdigest())