Cryptography program
Simple encryption and decryption program inplemented in Golang.
Table of contents
- Simple run
- Create an executable program
- Usage
- 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>