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

aesscr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesscr

Use AES-256-GCM + Scrypt to encrypt files

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

aesscr

Use AES-256-GCM + Scrypt to encrypt files.

Usage

npm install -g aesscr

CLI:

aesscr encrypt file.zip PASSWORD
# will create file.zip.aesscr
aesscr decrypt file.zip.aesscr PASSWORD
# will create file.zip

# PASSWORD must be 14 or more characters
# PASSWORD can be also supplied in ENV variable:
export AES_PASSWORD='abcdefabcdef1234'
aesscr encrypt file.zip

API:

import { encrypt, decrypt } from 'aesscr';
await encrypt("password101520", Uint8Array.from([5, 10, 11]));

Algorithm

  • Encryption: AES-256-GCM
  • Ciphertext format: IV + ciphertext + GCM tag
  • KDF: Scrypt, N=2^19, r=8, p=1, dkLen=32, salt=aes-1234-scr-5678-gcm
  • password is used in KDF is used to derive AES key

License

MIT License

Keywords

FAQs

Package last updated on 24 Jun 2022

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