mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
FIX: the 14b crc was called wrong in LUA. You enter a hexstring already, and get a hexstring back.
This commit is contained in:
parent
71cb7328e3
commit
f6af1cf0ad
2 changed files with 12 additions and 14 deletions
|
@ -75,9 +75,9 @@ local Utils =
|
|||
if #s == 0 then return nil end
|
||||
if type(s) == 'string' then
|
||||
local utils = require('utils')
|
||||
local ascii = utils.ConvertHexToAscii(s)
|
||||
local hashed = core.iso14443b_crc(ascii)
|
||||
return utils.ConvertAsciiToHex(hashed)
|
||||
return utils.ConvertAsciiToHex(
|
||||
core.iso14443b_crc(s)
|
||||
)
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue