Package Exports
- data-crypto
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data-crypto) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
data-crypto
encryption algorithms
install
npm i data-crypto --save
or
yarn add data-crypto
use
import { des,pinBlock } from "data-crypto";
//or
const { des, pinBlock } = require("data-crypto");
const keyhex = "abd219bc6c15181a";
const text= "plain text"
const cipher = des.encrypt(text, keyhex);
const decrypted = des.decrypt(cipher, keyhex);
const pan = "6819841515647280";
const pin = "123464420";
const pinXorPan = pinBlock(pan, pin);