JSPM

encrypt-folder

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 764
  • Score
    100M100P100Q96242F
  • License GPL-3.0-only

Encrypt a whole folder using AES 256

Package Exports

  • encrypt-folder

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (encrypt-folder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

encrypt-folder

This project can encrypt whole directories using AES 256 (aes-256-ctr)

Disclaimer

The developers of encrypt-folder assume no liability for data loss or any form of damage. Each user is responsible for proper use. It is not possible to decrypt encrypted files without the security key. Attention: You cannot encrypt any binary files like images, executables or disk images. If you encrypt binary files they will break.

Installation

Install encrypt-folder with npm

  npm install -g encrypt-folder

Usage/Examples

CLI Usage

encrypt-folder --help Displays all options

encrypt-folder encrypt <path> [key] Encrypts a directory

encrypt-folder decrypt <path> [key] Decrypts a direcotry

Use in your own project

const {util, encrypt, decrypt} = require('encrypt-folder');

// generate a key
const key = util.randomString(32)

// encrypt a string
const encrypted = util.encrypt(text, key)

// decrypt a string
const decrypted = util.decrypt(encrypted, key)

// encrypt a file
util.encryptFile("path/to/file", "path/to/output", key)

// decrypt a file
util.decryptFile("path/to/encrypted/file", "path/to/decrypted/output", key)

// encrypt a directory
encrypt.encryptDirectory("path/to/directory", key)

// decrypt a directory
decrypt.decryptDirectory("path/to/encrypted/directory", key)

Authors

Support

For support, join my discord @ https://discord.gg/YEHzrWVTp6