@bettse/mfkey

1.0.0 • Public • Published

MFKEY

mfkey tools wrapped in node

Example

//const {MFKEY32, MFKEY32V2, MFKEY64} = require('mfkey');
const {MFKEY32V2} = require('mfkey');
const HEX = 0x10;

//const key = MFKEY32V2(uid, nt, nr_0, ar_0, nt1, nr_1, ar_1);
const key = MFKEY32V2(
    0x12345678, 0x1AD8DF2B, 0x1D316024, 0x620EF048, 0x30D6CB07, 0xC52077E2, 0x837AC61A
)

// Key comes back as an int, so you'll probably want to convert to hex and pad it for most use
const hexKey = key.toString(HEX).padStart(12, '0');

console.log({hexKey})

Readme

Keywords

none

Package Sidebar

Install

npm i @bettse/mfkey

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

56.9 kB

Total Files

18

Last publish

Collaborators

  • bettse