Socket
Socket
Sign inDemoInstall

aescrypt

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

aescrypt

AES Salted Encryption helper


Version published
Maintainers
1
Created
Source

AESCrypt

Build Status Coverage Status Dependency Status devDependency Status Downloads

AES Salted Encryption helper

Partially inspired by AESCrypt Ruby gem.

NPM

Installation

npm install --save aescrypt

Usage

AESCrypt.encryptWithSalt(keytext, cleardata)

AESCrypt = require "aescrypt"

keytext   = "toomanysecrets"
cleardata = "we have explosive"

{encrypted, salt} = AESCrypt.encryptWithSalt keytext, cleardata

###
encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt      = "C/GzCUNDSjiotRNei17TfQ=="
###

AESCrypt.decryptWithSalt(keytext, salt, encrypted)

AESCrypt = require "aescrypt"

encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt      = "C/GzCUNDSjiotRNei17TfQ=="

decrypted = AESCrypt.decryptWithSalt keytext, salt, encrypted

###
decrypted = "we have explosive"
###

License

MIT

Keywords

FAQs

Package last updated on 02 Apr 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

  • 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