Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 570 Bytes

README.md

File metadata and controls

48 lines (35 loc) · 570 Bytes

go-cmd-base64

Usage

$ go run main.go -h
Usage:  base64 [-h] <file_name>
  -h, --help   display this message

File input

$ make build

# Encode
$ cat test.txt
ab% 
$ ./base64 test.txt
YWI=

# Decode
$ ./base64 test.txt > encoded_test.txt
$ ./base64 -d encoded_test.txt
ab%

Standard Input

$ make build

# Encode
$ cat test.txt | ./base64
YWI=

# Decode
$ ./base64 test.txt > encoded_test.txt
$ cat encoded_test.txt| ./base64 -d
ab%

$ at test.txt | ./base64 | ./base64 -d
ab%

LICENSE

under MIT License.