diff options
author | Erich Eckner <git@eckner.net> | 2024-11-03 17:34:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-11-03 17:34:03 +0100 |
commit | 5fba1443ac308d2f68ebe8932ac9d486a27dc40f (patch) | |
tree | 8377cd7ad4f1ba9d5379f6e838f8829bf0f0e245 | |
parent | 87f8f39e1e4bf43b2e45ca54ff180041d54fba5b (diff) | |
download | ykverify-5fba1443ac308d2f68ebe8932ac9d486a27dc40f.tar.xz |
read shared secret from file
-rwxr-xr-x | verify.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,9 @@ import string import subprocess import sys -ssh = b'840fedcacdb9e86f1ae1e6a0060de471d4f5fb35' +with open('.shared_secret', 'r') as file: + ssh = file.read().strip() + ss = codecs.decode(ssh, 'hex') chh = ''.join(random.choice('0123456789abcdef') for i in range(126)) |