cacrypt
A Nodejs package for encrypt/decrypt, sign/verify text
Last updated 3 years ago by ewnchui .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cacrypt 
SYNC missed versions from official npm registry.

CACrypt

CACrypt is nodejs package to perform encryption/decryption, signing/verifying.

Installation

npm install cacrypt --save

Config

module.exports =
	keySize: 32 # A key size of 16 bytes will use AES-128, 24 => AES-192, 32 => AES-256
  	algorithm: 'AES-CBC'
  	message: 'Testing message'

Usage

env = require('../env.coffee')
cacrypt = require('../index.coffee')(env)

API

- cacrypt.encrypt *publickey* *message*
- cacrypt.decrypt *privatekey* *bundlewithmessage&key*
- cacrypt.sign *privatekey* *message*
- cacrypt.verify *publickey* *bundlewithmd&signature*

Test

npm test

Current Tags

  • 0.0.6                                ...           latest (3 years ago)

6 Versions

  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 4
Dependencies (8)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |