0.1.1 • Published 5 years ago

kevast-encrypt v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

kevast-file.js

Build Status Coverage Status Dependencies Dev Dependencies Package Version Open Issues MIT License

Encryption middleware for kevast.js.

Kevast-gist encrypts data with AES-128-CBC.

For encryption detail, refer to node-forge.

Installation

Node.js

Using yarn

yarn add kevast-encrypt

Using npm

npm install kevast-encrypt

Browser

<script src="https://cdn.jsdelivr.net/npm/kevast-encrypt/dist/kevast-encrypt.min.js"></script>

Usage

const { Kevast } = require('kevast');
const { KevastMemory } = require('kevast-memory');
const { KevastEncrypt } = require('kevast-encrypt');
const assert = require('assert');

(async () => {
  const map = new Map();
  const kevast = new Kevast(new KevastMemory(map));
  kevast.use(new KevastEncrypt(KevastEncrypt.randomString()));
  await kevast.set('key', 'value');
  console.log(map);
  assert(await kevast.get('key') === 'value');
})();
0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago