Skip to content

kokoichi206-sandbox/go-cmd-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published