gocipher

command module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

README

Gocipher

Gocipher is a cross platform command line tool for encryption and decryption, including RSA, DES, BASE64, MD5, SHA256.

Install

To install the library, follow the classical:

$ go get github.com/godaner/gocipher

Or get it from the released version:

https://github.com/godaner/gocipher/releases

Note: curl -LJO https://github.com/godaner/gocipher/releases/download/v1.0.3/gocipher_linux-amd64.tar.gz, tar -zxvf gocipher_linux-amd64.tar.gz

Supported platforms

This library works (and is tested) on the following platforms:

Platform Architecture Status
Linux amd64
386
Windows amd64
386
Others Others

Usage

$ ./gocipher
NAME:
   gocipher - Gocipher is a cross platform command line tool for encryption and decryption, including RSA, DES, BASE64, MD5, SHA256.

USAGE:
   gocipher [global options] command [command options] [arguments...]

VERSION:
   v1.0.3

COMMANDS:
   rsaenc     encrypt by rsa
   rsadec     decrypt by rsa
   desenc     encrypt by des
   desdec     decrypt by des
   base64enc  encrypt by base64
   base64dec  decrypt by base64
   md5        md5
   sha256     sha256
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help     show help
   --version  print the version

RSA

encrypt
./gocipher rsaenc \
--textfile ./plaintext \
-o ./ciphertext \
--pubkeyfile ./publickey \
--base64 rawurl
decrypt
./gocipher rsadec \
--textfile ./ciphertext \
-o ./plaintext \
--prikeyfile ./privatekey \
--base64 rawurl

DES

encrypt
./gocipher desenc \
--textfile ./desplaintext \
-o ./desciphertext \
--key 12345678 \
--base64 rawurl
decrypt
./gocipher desdec \
--textfile ./desciphertext \
-o ./desplaintext \
--key 12345678 \
--base64 rawurl

BASE64

encrypt
./gocipher base64enc --text godaner
decrypt
./gocipher base64dec --text Z29kYW5lcg==

MD5

./gocipher md5 --text godaner

SHA256

./gocipher sha256 --text godaner

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
log

Jump to

Keyboard shortcuts

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