adyen-5.11.0
v1.0.0
Published
The adyen-5.11.0 npm module enables encryption of sensitive card data using Adyen's v5.11.0 method with a NodeJS implementation.
Downloads
15
Maintainers
Readme
Adyen-5.11.0
The adyen-5.11.0
npm module is an implementation of Adyen's v5.11.0 encryption method for Node.js, reverting back to the "old style adyen encryption." Unlike the 4.xx versions, this module simplifies the process by not requiring the public key, URL, and click/movement data in the encrypted JSON. However, most sites using Adyen still require generating RiskData based on their 1.0.0 version of fingerprinting, with some modifications to hash functions. Check out my solution for Adyen RiskData at mygithubprofile/Adyen-riskData.
For previous versions of Adyen encryption methods, see my other repositories:
Table of Contents
Differences from the 4.xx Versions
The main difference in the 5.11.0 version is the return to the simpler encryption method used in previous versions of Adyen's encryption. This version doesn't require additional data like public key, URL, and user interactions for encrypting card data. For RiskData generation, Adyen still uses a modified version of fingerprintjs2.
Resources
- Learn more about Adyen's encryption method here
Installation
Install via npm:
npm install adyen-5.11.0
Usage
To use the module, simply require it and call the necessary functions. Example usage:
const encryptCardData = require('adyen-5.11.0');
// Example card data
const cardData = {
number: '4242424242424242',
expiryMonth: '12',
expiryYear: '2023',
cvc: '123'
};
// Encrypt the card data
const encryptedData = encryptCardData(
cardData.number,
cardData.expiryMonth,
cardData.expiryYear,
cardData.cvc,
'adyenKey'
);
console.log(encryptedData);
Please note that you need to replace adyenKey
with the actual website's Adyen key.
Contributing
We appreciate any contributions you might make. Please feel free to submit a pull request, issue, or suggestion.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Credits
- GlizzyKingDreko - Developer