Skip to content

rhzs/hsm-pin-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

Build Status install size dependencies CodeFactor

HSM PIN Block

High Performance - HSM PIN Block module. Provide PCI Standard PIN Block Encryption with ZPK as key for banking, compliance with ISO-9564-format-0.

This library used at the one of the largest bank in Indonesia, made by ex-banker https://jenius.com

Install

You need at least NodeJS v8.11.3. I have tested in NodeJS >=8.11.3, 10.X, and 13.X.

Usages

const hsm = require('hsm-pin-block');

const zpk = 'YOUR_ZPK';
const pin = '123456';
const pan = '1234-5678-1234-5678'

// To generate pin block
const atmPinBlock = hsm.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

About

HSM ISO-9564 PIN Block Generator using NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published