mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
FIX: basic fixes for lua reader14a, reader14b, reader15
ADD: utils got iso15693 crc support
This commit is contained in:
parent
ccb0cd23f5
commit
a5898158c5
5 changed files with 135 additions and 175 deletions
|
@ -109,7 +109,19 @@ local Utils =
|
|||
end
|
||||
return nil
|
||||
end,
|
||||
|
||||
----ISO15693 CRC
|
||||
Crc15 = function(s)
|
||||
if s == nil then return nil end
|
||||
if #s == 0 then return nil end
|
||||
if type(s) == 'string' then
|
||||
local utils = require('utils')
|
||||
return utils.ConvertAsciiToHex(
|
||||
core.iso15693_crc(s)
|
||||
)
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
|
||||
------------ CRC-8 Legic checksums
|
||||
-- Takes a hex string and calculates a crc8
|
||||
Crc8Legic = function(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue