npm.io
1.0.6 • Published 3 years ago

ciam-encrypt

Licence
ISC
Version
1.0.6
Deps
2
Size
6 kB
Vulns
0
Weekly
0

mmp-api

Installation.

Getting Started

for applications that will be using via npm
run this command on you front end application if you are having npm
npm install git://github.com/visionmedia/express.git
for the creator, how to build this project
run this command
npm run-script build
how to use
import { AesUtil } from "ciam-encrypt";

var aesUtil = new AesUtil(rsaPublicKey);
var encryptedObject = aesUtil.encrypt(data);
//note that encryptedObject have variables
//  iv
//  salt
//  key- encrypted key via rsa public key
//  ciphertext - encrypted text using aes

this.sendData(encryptedObject.iv, encryptedObject.salt, encryptedObject.key, encryptedObject.ciphertext)
todo
make this automated and installed on npm repo or what.

Keywords