Evan Chen
220dd90b01
continuous-integration/drone/tag Build is passing
Details
|
||
---|---|---|
cmd/xorenc | ||
.drone.yml | ||
.gitignore | ||
README.md | ||
go.mod | ||
make.sh | ||
xorencrypt.go | ||
xorencrypt_test.go |
README.md
XOR Encrypt
a simple xor encryption that encodes to base64 for url safe
Usage
msg := "test"
key := "key"
enc := Encrypt(msg, key)
dec, _ := Decrypt(enc, key)
fmt.Printf("%s -> %s -> %s\n", msg, enc, dec)
Helper cli
usage: xorenc [e|d] msg key
$ xorenc e test secret
BwAQBg==
$ xorenc d BwAQBg== secret
test
Install
sudo rm -f /usr/local/bin/xorenc
sudo sh -c "curl -fsSL RELEASE_URL | tar -C /usr/local/bin/ -xz"