Socket
Socket
Sign inDemoInstall

aesscr

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aesscr

Use AES-256-GCM + Scrypt to encrypt files


Version published
Weekly downloads
2
Maintainers
1
Install size
281 kB
Created
Weekly downloads
 

Readme

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

Last updated on 24 Jun 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc