]> cvs.zerfleddert.de Git - proxmark3-svn/commit - client/scripting.c
ADD: added the crc8legic to Lua. call it with core.crc8legic
authoriceman1001 <iceman@iuse.se>
Mon, 22 Feb 2016 16:50:32 +0000 (17:50 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 22 Feb 2016 16:50:32 +0000 (17:50 +0100)
commita75d63f19b93f22faeff886f9f2568f3d7531d55
treedf3e9bb3c9a3d7bd44590f9551aa88f8d4bcd040
parentc0f15a05b36450c0182462d6d9d093c04c602b67
ADD:  added the crc8legic to Lua.  call it with core.crc8legic
      also a helper function to take a hexstring and calc the crc on it, was added inside utils.lua

   Call it inside a lua-script like this:

        local utils = require('utils')
        local data = '01020304'
local crc = utils.Crc8Legic(data)
print (uid,  ('%02x'):format(crc))
client/lualibs/utils.lua
client/scripting.c
client/scripting.h
Impressum, Datenschutz