ncrypt

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 9 Imported by: 0

README

ncrypt | simple file encryption CLI

NB: You probably shouldn't use this! Go find you a battle tested encryption CLI. I'm sure its out there somewhere.

ncrypt is a very simple command line tool for file encryption and decryption.

Usage

Usage of ncrypt:
  -d, --decrypt         decrypt input instead of encrypt
  -i, --input string    input filename (default "stdin")
  -o, --output string   output filename (default "stdout")
      --passwd-stdin    read password from stdin
# Encrypt
ncrypt -i input.txt > input.txt.ncrypt
# Decrypt
ncrypt -i input.txt.ncrypt

Design

ncrypt uses argon2id for key derivation (turning your password input into an encryption key) and xchacha20poly1305 for authenticated encryption.

Why?

In a recent conversation with some folks we were dismayed at the state of encryption of private keys output by openssl. We were wanting for a simple CLI that used modern authenticated encryption to encrypt files with a password. While greate libraries exist like

we couldn't find a simple ubiquitous encryption CLI that exposed these libraries for command line users.

Whats with the name?

n -> Nathan (me) crypt -> encrypt / decrypt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL