xorenc/README.md

13 lines
221 B
Markdown
Raw Normal View History

2021-11-17 01:46:39 +00:00
# XOR Encrypt
a simple xor encryption that encodes to base64 for url safe
## Usage
```go
msg := "test"
key := "key"
enc := Encrypt(msg, key)
dec, _ := Decrypt(enc, key)
fmt.Printf("%s -> %s -> %s\n", msg, enc, dec)
```