cryptology-program

module
v0.0.0-...-4a7591a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: GPL-3.0

README

Cryptography program

Simple encryption and decryption program inplemented in Golang.

Table of contents

  1. Simple run
  2. Create an executable program
  3. Usage
  4. Command line arguments mode

N.B.: To use all the command, you must have installed the Golang environment.

Simple run

You can run the program directly with :

go run <filename>.go

Executable binary program

You can run the followig command for build one specific binary :

go build <filename>.go

Or you can also run this command to build all binaries in one time :

make build

N.B.: make application must be installed in your machine

Usage

You can use all the program from 2 ways :

  • you can just open the binary file which open an interactive program;
  • you can just pass the arguments to the command when you call it.

Command line arguments mode

For the encryptmessage.go file, you must run :

encryptmessage.exe <msg:string> <key:string>

For the decryptmessage.go file, you must run :

decryptmessage.exe <encrypted_byte_data:byte_array> <key:string>

For the encryptmessagetofile.go file, you must run :

encryptmessagetofile.exe <filename:string> <msg:string> <key:string>

For the decryptmessagefromfile.go file, you must run :

decryptmessagefromfile.exe <filename:string> <key:string>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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