From 5fba1443ac308d2f68ebe8932ac9d486a27dc40f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 3 Nov 2024 17:34:03 +0100 Subject: read shared secret from file --- verify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3-70-g09d2