zozs / filecryptify

Simple file and stream encryption tool based on libsodium

Home Page:https://sr.ht/~zozs/filecryptify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

filecryptify

Simple application that uses libsodium to encrypt files using symmetric encryption.

Uses default libsodium algorithms, which is the ChaCha20 stream cipher combined with Poly1305 as MAC. (To be exact, the XChaCha20-Poly1305 construction from libsodium is used.)

Installation

Prerequisites

  • libsodium >= 1.0.14
  • BSD make
  • Tested on Linux, FreeBSD, and OpenBSD

Commands

Run make in the directory (on Linux, run bmake to use BSD make).

Optionally, run make install to install to /usr/local (default, can be changed by setting PREFIX)

Usage

usage: ./filecryptify -G -k keyfile

Generates a new random symmetric key and stores it in the file keyfile.

usage: ./filecryptify -E -k keyfile [-p plaintextfile] [-c ciphertextfile]

Encrypts the file plaintextfile (or reads from stdin if no file is given), using the symmetric key in keyfile. Stores the encrypted ciphertext in ciphertextfile (or writes to stdout if no file is given).

usage: ./filecryptify -D -k keyfile [-p plaintextfile] [-c ciphertextfile]

Decrypts the file ciphertextfile (or reads from stdin if no file is given), using the symmetric key in keyfile. Stores the decrypted plaintext in plaintextfile (or writes to stdout if no file is given).

License

Copyright 2018, 2019, Linus Karlsson

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

Simple file and stream encryption tool based on libsodium

https://sr.ht/~zozs/filecryptify/

License:ISC License


Languages

Language:C 62.6%Language:Roff 15.7%Language:Shell 13.9%Language:Makefile 7.8%