Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

adyen-4.4.1

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adyen-4.4.1

The adyen-4.4.1 npm module enables encryption of sensitive card data using Adyen's v4.4.1 method with a NodeJS implementation.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Adyen-4.4.1

The adyen-4.4.1 npm module enables you to encrypt sensitive card data using Adyen's v4.4.1 encryption method with a Node.js implementation. This encryption is commonly used in websites like MyTheresa.

This module is provided by TakionAPI. It was previously sold by the company, but we decided to open-source it for everyone.

Resources

  • Learn more about TakionAPI here
  • Read about Adyen here

Installation

Install via npm:

npm install adyen-4.4.1

Usage

Here's a simple example of how to use the encryptCardData function:

const encryptCardData = require('adyen-4.4.1');

const card = '4242424242424242';
const month = '12';
const year = '2023';
const cvc = '123';

const adyenKey = '10001|BDDBC3D5D295D76130434778B66DC95CF149DDBEEA8FB8FAC22415FAE7EB02C9530DA04859786CB5D07278D3F9DFE46463A21F94B4DBBDF1C42AEC2F69BB60FC7409177ECC80ADB2117C075C408CFFB102C4DB22D6D96FC3D85ECF337A63355761B3A33B2B2AB00BC8E3BA02C498322132D1C88331FFA26CF9AF1509D1150DE3B1A4F551BF7E0E6799B23204CEE3050A4DE9FDEF3E7C1A613CD5A7A306EEA1EF77213CFEF181006D0A7D4BF2C738734FE272523DC77C288B47D16E4DC39519017199DFEDEB94FC9343864AC6A07B5F9EFBCA22D1BCA01DFC7019B3100E2D216A12A9F09FEDEB2AEAFA7D0C1E8F201D9DBF6E162160623EF502BC8151585C44BD';

console.log(
    encryptCardData(card, month, year, cvc, adyenKey)
)

Please note that you need to replace adyenKey with your actual 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

FAQs

Package last updated on 01 Jul 2023

Did you know?

Socket

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.

Install

Related posts