Merge pull request #2 from xBytez/feature/quiet-generation

Silence generate script
This commit is contained in:
xBytez 2019-10-02 23:58:42 +02:00 committed by GitHub
當前提交 fb57239727
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 8 次插入4 次删除

查看文件

@ -13,11 +13,15 @@ secret = f.readline()[0:-1]
offset = f.tell() offset = f.tell()
count = int(f.readline()) count = int(f.readline())
print("secret", secret) debug = False
print("count", count)
hotp = pyotp.HOTP(secret) hotp = pyotp.HOTP(secret)
print("Code:", hotp.at(count)) if debug:
print("secret", secret)
print("count", count)
print("code:", hotp.at(count))
else:
print(hotp.at(count))
f.seek(offset) f.seek(offset)
f.write(str(count + 1)) f.write(str(count + 1))