Skip to content

jedisct1/encpipe

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 11, 2020 21:18
ext
October 16, 2022 21:52
December 30, 2017 08:45
December 30, 2017 03:29
August 4, 2020 01:40
November 18, 2021 14:07
June 11, 2020 21:21

CodeQL scan

Encpipe

The dum^H^H^Hsimplest encryption tool in the world.

Usage

Encrypt a file using a password:

encpipe -e -p password -i inputfile -o outputfile

Decrypt a file using a password:

encpipe -d -p password -i inputfile -o outputfile

-i and -o can be set to - or omitted to read/write from the standard input/output.

-P password_file can be used to read the password, or an arbitrary long key (that doesn't have to be text) from a file.

If you don't feel inspired, -G prints a random password.

Example - encrypted file transfer:

nc -l 6666 | encpipe -d -p password
encpipe -e -p password -i /etc/passwd | nc 127.0.0.1 6666

Example - compressed, encrypted archives:

zstd -5 -v -c "$FILE" | encpipe -e -p "$PASSWD" -o "${FILE}.zst.encpipe"

Dependencies

None. It includes libhydrogen as a submodule. There is nothing to install.

Installation

make
sudo make install

Why

It was faster to write than remember how to use GnuPG and OpenSSL.