hsm-pin-block

1.0.3 • Public • Published

NPM

Build Status install size dependencies CodeFactor

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

Package Sidebar

Install

npm i hsm-pin-block

Weekly Downloads

16

Version

1.0.3

License

MIT

Unpacked Size

6.57 kB

Total Files

7

Last publish

Collaborators

  • incubus8