Evan Chen f78900130b | ||
---|---|---|
README.md | ||
go.mod | ||
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)