Convert text to binary (011111....)
I was having some free time and was in fun mood. I and my friend used it to chat on whatsapp group.
- Download the binaries for your os using the link.
-
String to binary conversion:
command:
./binary -s="mad on the mars"
output:
01101101 01100001 01100100 00100000 01101111 01101110 00100000 01110100 01101000 01100101 00100000 01101101 01100001 01110010 01110011
-
Binary string to string conversion:
command:
./binary -b="01101101 01100001 01100100 00100000 01101111 01101110 00100000 01110100 01101000 01100101 00100000 01101101 01100001 01110010 01110011"
output:
mad on the mars
[OPTIONAL] export it to your PATH
for a convenient use
export PATH=$PATH:$(pwd)
go get -u github.com/prakashpandey/binary
go install github.com/prakashpandey/binary
-
cd $GOPATH/src/github.com/prakashpandey/binary
-
go build
The Unlicense
, please visit LICENSE for more information.