crypt

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

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

Go to latest
Published: Nov 6, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

README

                                             _/      
    _/_/_/  _/  _/_/  _/    _/  _/_/_/    _/_/_/_/   
 _/        _/_/      _/    _/  _/    _/    _/        
_/        _/        _/    _/  _/    _/    _/         
 _/_/_/  _/          _/_/_/  _/_/_/        _/_/      
                        _/  _/                       
                     _/_/  _/                      

Simple CLI tool to encrypt / decrypt text.

Installation

go get github.com/btb55/crypt
go install

Usage example

Encrypt:

crypt -e -k mykey 'secret text'
// output
-------------------------------------------
26vBzKOIOpg06qGluKzJuFmBcX2_Rt7tSMRUF3-LHo0
-------------------------------------------

Decrypt:

crypt -d -k mykey 26vBzKOIOpg06qGluKzJuFmBcX2_Rt7tSMRUF3-LHo0
// output
-----------
secret text
-----------

Documentation

Overview

This app encrypts text / decrypts with AES 256. Encryption: If the key < 32bit, the padding is simply the key repeated until it meets such length. Decryption: If the key < 32bit, the key is 'depadded' until a unique, unpadded key is revealed.

Jump to

Keyboard shortcuts

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