npm.io
2.0.0 • Published yesterday

@mdip/cipher

Licence
MIT
Version
2.0.0
Deps
9
Size
94 kB
Vulns
0
Weekly
0
Stars
14

MDIP cipher

MDIP cryptography utilities for encryption/decryption and creating/verifying signatures.

Installation

npm install @mdip/cipher

Usage

The cipher library comes in two versions for servers and web browsers. The classes are identical but have different package dependencies.

Node server applications
// Import using subpaths
import CipherNode from '@mdip/cipher/node';

//Non-subpath import
import CipherNode from '@mdip/cipher';

const cipher = new CipherNode();
Web browsers
// Import using subpaths
import CipherWeb from '@mdip/cipher/web';

//Non-subpath import
import CipherWeb from '@mdip/cipher';

const cipher = new CipherWeb();