Socket
Book a DemoInstallSign in
Socket

crl

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crl

Context-based encryption scheme

0.0.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

cereal

Context-based encryption scheme

How it works?

Cereal uses the previously decrypted text as key at the next encryption. This means always changing keys, that never leave your instance. It uses AES256 as encryption algorithm, but the keys don't need to be shared between the two instances, because they always evolve based on the decrypted message.

API

new Cereal(rootKey)

The constructor. It accepts a rootKey, which will be the first key of the encryptions.

cereal.encrypt(msg)

Returns the encrypted string.

cereal.decrypt(msg)

Return the decrypted string.

cereal.set_key(key)

Set the key manually.

Keywords

encryption

FAQs

Package last updated on 18 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.