Socket
Book a DemoInstallSign in
Socket

litaes

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

litaes

A cli tool to help encrypt and decrypt your data using aes-256.

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
0
Created
Source

LitAes

A tool to help encrypt and decrypt your data using AES-256 algorithm.

The algorithm is AES-256-CBC in openssl.

And it could be also used as an library.

Install

npm i -g litaes

Usage

Encrypt File

# Encrypt File
## This will generate encrypted file in the same directory of origin file.
## The encrypted file's format is `Lit`.
## So `abc.zip` will be `abc.zip.Lit` after encryption.
litaes e file_to_encrypt password
litaes encrypt file_to_encrypt password
litaes e file_to_encrypt -p [password]
litaes encrypt file_to_encrypt -p [password]
litaes e file_to_encrypt --password [password]
litaes encrypt file_to_encrypt --password [password]
### The command could be `e` or `encrypt`, they are same.
### `-p` is an alias of `--password`, and
### `-p` is optional for providing password.
### But if you want input your password, keep `-p` empty.

Decrypt File

[!CAUTION] This tool can only decrypt files encrypted by this tool.

# Decrypt File
## This will generate decrypted file in the same directory of origin file.
## The decrypted file's format is `Til`.
## For example, `abc.zip.Lit` will be decrypted to `abc.zip.Til`.
## Why not just `abc.zip`? Because you may perform decryption in the same directory.
litaes d file_to_decrypt password
litaes decrypt file_to_decrypt password
litaes d file_to_decrypt -p [password]
litaes decrypt file_to_decrypt -p [password]
litaes d file_to_decrypt --password [password]
litaes decrypt file_to_decrypt --password [password]
### Just like in `Encrypt File`,
### The command could be `e` or `encrypt`, they are same.
### `-p` is an alias of `--password`, and
### `-p` is optional for providing password.
### But if you want input your password, keep `-p` empty.

Additional

About Password

If you want to supply your password from environment variables.

There is a way to do that. LITAES_PASSWORD, keep it uppercase.

# example in powershell
$env:LITAES_PASSWORD='password'

And the priority is

command plain password > -p, --password > LITAES_PASSWORD

Other Information

You could just run litaes -h to get more infomation.

Keywords

aes

FAQs

Package last updated on 27 Aug 2024

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