Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.09 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.09 KB

crypto

crypto is a command line tool that encrypt / decrypt text

Installation

Type below command to install crypto

go get -u crypto
go install crypto

How to use

Usage:
  crypto [flags]

Examples:

crypto rsa -h
crypto rsa -e -s "text to encrypt"
crypto rsa -d -s "text to decrypt"


Flags:
  -d, --decrypt         run with option --decrypt or -d for text encryption
  -e, --encrypt         run with option --encrypt or -e for text encryption
  -h, --help            help for crypto
  -k, --key string      run with option --key or -k for rsa key
  -s, --source string   run with option --source=source text to encrypt or encrypt

Encrypt text

crypto rsa -e -s hello

HZ62JK0istPirbTe4M14foFdE88hvB1oH5HruOEVwwAGU7tT2fy39grAnFriZFJVgM0yAgoqgppW3d40IuUBZMFajzIPzyhM9s2vOWNmvTYFkXF0vYfQporA/FGVttOfD27Tji3XAnoc1nlOAPjRLnF1vGbSLDUWkg3/LsCcwGY=

Decrypt text

crypto rsa -d -s HZ62JK0istPirbTe4M14foFdE88hvB1oH5HruOEVwwAGU7tT2fy39grAnFriZFJVgM0yAgoqgppW3d40IuUBZMFajzIPzyhM9s2vOWNmvTYFkXF0vYfQporA/FGVttOfD27Tji3XAnoc1nlOAPjRLnF1vGbSLDUWkg3/LsCcwGY=

hello