Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clubedaentrega/cipher

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clubedaentrega/cipher

Encrypt/decrypt data using AES-128-GCM easily

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@clubedaentrega/cipher

Encrypt/decrypt data using AES-128-GCM easily

Install

npm install @clubedaentrega/cipher --save

Usage

// `key` is either a Buffer with 16 bytes or a hex-encoded-string
var key = '<a 128 bit key = 32 hex-chars>'
var cipher = require('@clubedaentrega/cipher')(key)

var cipherText = cipher.encrypt('some data')

var plainText = cipher.decrypt(cipherText) // 'some data'
var invalid = cipher.decrypt('invalid cipher text') // undefined

Create your encryption key with something like crypto.randomBytes(16)

Keywords

FAQs

Package last updated on 31 Jul 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc