hsm-pin-block
v1.0.3
Published
Generate ISO-9564 PCI Encryped PIN Block International Standard using NodeJS
Downloads
160
Maintainers
Readme
HSM PIN Block
HSM PIN Block module. Provide PCI Standard PIN Block Encryption for banking standard, compliance with ISO-9564-format-0. This library used in the one of the largest bank in Indonesia, made by ex-banker https://jenius.com
TOC
Install
You need at least NodeJS v8.11.3. I have tested in NodeJS >=8.11.3, 10.X, and 13.X.
Usages
const HsmPb = require('hsm-pin-block');
const zpk = 'YOUR_ZPK';
const pin = '123456';
const pan = '1234-5678-1234-5678'
// To generate pin block
const atmPinBlock = HsmPb.encrypt(zpk, pin, pan);
console.log(atmPinBlock);
Who's using it?
Let me know if you use my library. Put your product name here.
License
MIT (c) 2017-2020
Need support?
Contact author: Rheza Satria via Github message