New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-2c2p

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-2c2p

encryption payment action for 2c2p

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Node-2c2p

Introduction

Helper function for encrypt and decrypt 2c2p payment action api.

Installation

npm install node-2c2p

encrypt(xmlString, publicKeyPath)

/**
 * @param {String} xmlString xml string that you want to encrypt.
 * @param {String} publicKeyPath path to your certificate file (this file you have to request from 2c2p)
 * @return {String} encrypted xml string
 */

decrypt(encryptedXml, privateKeyPath)

/**
 * @param {String} encryptedXml encrypted reponse string from 2c2p payment action request.
 * @param {String} privateKeyPath path to your pem file (this file you have to request from 2c2p)
 * @return {String} string in xml
 */

FAQs

Package last updated on 09 Jun 2018

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