
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
adyen-4.5.0
Advanced tools
The adyen-4.5.0 npm module enables encryption of sensitive card data using Adyen's v4.5.0 method with a NodeJS implementation.
The adyen-4.5.0 npm module enables you to encrypt sensitive card data using Adyen's v4.5.0 encryption method with a Node.js implementation. This encryption is commonly used in websites like Chelsea FC.
Check my repo for adyen-4.4.1 as well
Not much, a new calculation based on the encoded protected header has been added and it must be passed in the hmac (tag key). Take a look here for more information.
Install via npm:
npm install adyen-4.5.0
Here's a simple example of how to use the encryptCardData function:
const encryptCardData = require('../src/encrypt');
const card = '4242424242424242';
const month = '12';
const year = '2023';
const cvc = '123';
const adyenKey = '10001|E9299A45B34AE878855F3E66136B461664F519E85F36E59B505CD6590311FE96BAF50830BED460FE6EB8AD39B3E4BFCF5028A33A64C518E3BC13F23E49CE9C68B13A3ED9BB9233C166A7572755E62CB67AAF7A6AFC1070CAD7FF3F6FD8C070168FC6ED31E81F3DE10A93D6A9494F9D24900F1499D95264E66E3DC357B4628E02A6DF0ED37196539309AB0B1EA7EEB2BD67452B16289452D617C687867981C3570E0C43C51EB273154011D53F09B2B2E1AAD41B13B686A861D2C095DFEA258AD589AE482CAF9B05EFFF1C16EF182D67CA459B6EBD00E63F170307B56237A6C8AE593EFAD9E58AEC7D560B41B3412DD7D5E64B76BFEF75354DC52BD2138B77F279';
console.log(
encryptCardData(
card, month, year, cvc, adyenKey,
"live_DY4VMYQL5ZHXXE5NLG4RA5PYKYWDYAU2", // Public payment Key (optional)
"https://chelseafc.3ddigitalvenue.com" // Domain (optional)
)
)
Please note that you need to replace adyenKey with the actual website's Adyen key.
We appreciate any contributions you might make. Please feel free to submit a pull request, issue, or suggestion.
This project is licensed under the MIT License. See the LICENSE file for more information.
FAQs
The adyen-4.5.0 npm module enables encryption of sensitive card data using Adyen's v4.5.0 method with a NodeJS implementation.
We found that adyen-4.5.0 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.