cifra

command module
v0.0.0-...-fba1e97 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 8 Imported by: 0

README

cifra: A simple symmetric encryption tool

cifra is an easy-to-use symmetric encryption command-line tool, using the robust AES-256 encryption standard.

Available modes:

  • Galois/Counter Mode (GCM)
  • Cipher Feedback Mode (CFB).

Quick Start

$ go build
$ ./cifra -help

Examples

Encrypt a file called data.txt using AES-256 GCM:

$ ./cifra data.txt
Password:
$ ls
data.txt  data.txt.cif

Encrypt data.txt using AES-256 CFB. Output file should be named data.txt.cfb:

$ ./cifra -cfb -o data.txt.cfb data.txt
Password:
$ ls
data.txt  data.txt.cif  data.txt.cfb

Decrypt both files:

$ ./cifra -dec -o data.dec1 data.txt.cif
Password:
$ ./cifra -dec -cfb -o data.dec2 data.txt.cfb
Password:
$ ls
data.txt  data.txt.cif  data.txt.cfb  data.dec1  data.dec2

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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