mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Challenge made from random string in HMAC authentication.
This commit is contained in:
parent
b281c7a0bc
commit
d4eff7da3a
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import sqlite3
|
||||
import hmac
|
||||
import hashlib
|
||||
|
@ -110,7 +111,7 @@ class YubikeyHMACAuthenthicator(object):
|
|||
nick = record[0]
|
||||
secretKey = record[1].decode("hex")
|
||||
|
||||
challenge = 'Sample #2'
|
||||
challenge = os.urandom(32)
|
||||
|
||||
# Select HMAC-SHA1 on slot 2 from Yubikey
|
||||
apdusHex = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue