summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-11-03 17:34:03 +0100
committerErich Eckner <git@eckner.net>2024-11-03 17:34:03 +0100
commit5fba1443ac308d2f68ebe8932ac9d486a27dc40f (patch)
tree8377cd7ad4f1ba9d5379f6e838f8829bf0f0e245
parent87f8f39e1e4bf43b2e45ca54ff180041d54fba5b (diff)
downloadykverify-5fba1443ac308d2f68ebe8932ac9d486a27dc40f.tar.xz
read shared secret from file
-rwxr-xr-xverify.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/verify.py b/verify.py
index 25e3c42..e3f3bc8 100755
--- a/verify.py
+++ b/verify.py
@@ -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))