diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 20:30:34 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 20:30:34 +0200 |
commit | 137a28c05ceacd0427fe1fb25b5a184d6b96985c (patch) | |
tree | 97d8bcf3d4c3ec01cdf055b0656623f9c118c616 /README.md | |
parent | 128894cd1ce9120b3774af3ea996a1dc3b76b427 (diff) | |
download | libnitrokey-137a28c05ceacd0427fe1fb25b5a184d6b96985c.tar.gz libnitrokey-137a28c05ceacd0427fe1fb25b5a184d6b96985c.tar.bz2 |
Readme: login before accessing the device. Tests: change device to Nitrokey Pro
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -50,6 +50,9 @@ def get_hotp_code(lib, i): lib.NK_get_hotp_code(i) libnitrokey = get_library() +libnitrokey.NK_set_debug(False) # do not show debug messages +libnitrokey.NK_login('P') # connect to Nitrokey Pro device + hotp_slot_1_code = get_hotp_code(libnitrokey, 1) print (hotp_slot_1_code) |