{"repo":"deepal/node-dukpt","free":true,"listed":false,"github":"https://github.com/deepal/node-dukpt","clone":"git clone https://github.com/deepal/node-dukpt.git","description":"Node JS Library for Derived Unique Key Per Transaction (DUKPT) Encryption 💳🔑🛡","language":"JavaScript","stars":28,"topics":["dukpt-encryption","aes","node-dukpt","dukpt","encryption","payments","security","javascript","nodejs","decryption"],"license":"MIT","category":"security-tools","readme_excerpt":"node-dukpt Derived Unique Key Per Transaction (DUKPT) Encryption with NodeJS This the NodeJS implementation of DUKPT based on the vanilla javascript implementation of IDTech DUKPT encryption/decryption. This module provides Dukpt encryption using either 3DES or AES schemes. Please note that AES encryption/decryption is currently only supported with NodeJS versions 6.x.x and above due to few limitations which will be addressed soon in a next release. Don't hesitate to report any bugs in the Github Repository!. Many thanks to @jamiesoncj for providing resources. Prerequisites Node v12.0.0 or above Installing Using DUKPT Initialize DUKPT by providing BDK and KSN: After initializing, you can use dukptEncrypt and dukptDecrypt methods to encrypt/decrypt data using DUKPT. Encrypting ascii data Using 3DES, or with AES, Encrypting hex data Using 3DES, or using AES, Decrypting data with ascii output encoding Decrypting data with hex output encoding API constructor Dukpt(bdk, ksn, [keyMode]) bdk Base derivation key (BDK) for initialization ksn Key serial number (KSN) for initialization See here for more information on BDK and KSN keyMode default: 'datakey' Key mode for deriving session key from initial pin encryption key (IPEK). Possible values are: - datakey (default) - pinkey - mackey Dukpt.prototype.dukptEncrypt(plainTextCardData, options) and Dukpt.prototype.dukptDecrypt(encryptedCardData, options) options You can use options object to provide additional options for the DUKPT encryp","default_branch":null,"files":null,"tree":[],"storefront":"/r/deepal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/deepal/node-dukpt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}