🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@credenceanalytics/icici-payments-encryption

Package Overview
Dependencies
Maintainers
10
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@credenceanalytics/icici-payments-encryption

This module allows you to securely encrypt and decrypt data of ICICI payment, using a pair of public and private keys.

unpublished
latest
npmnpm
Version
1.0.0
Version published
Maintainers
10
Created
Source

@credenceanalytics/icici-payments-encryption

This module allows you to securely encrypt and decrypt data of ICICI payment, using a pair of public and private keys.

Installation

npm install @credenceanalytics/icici-payments-encryption

How To Use

Pass PUBLIC_KEY, PRIVATE_KEY to initiate.

const EncryptDecrypt = require('@credenceanalytics/icici-payments-encryption');
const instance = new EncryptDecrypt({ publicKey: PUBLIC_KEY, privateKey: PRIVATE_KEY });

API

encrypt(content)

// To encrypt
const { status, encryptedKey, encodedEncryptedData } = instance.encrypt(content); // content as Object

This method is used to encrypt the content.
Returns encryptedKey (encrypted data) and encryptedData (encrypted public key) in base64 encoded format.

decrypt(key, data)

// To Decrypt
const {status, decryptedContent} = instance.decrypt(key, data) // base64 encoded encrypted key and data 

This method is used to decrypt the data and key.
Returns decryptedContent (decrypted data).

FAQs

Package last updated on 04 Oct 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