Go to file
Evan Chen f78900130b feat: add default key 2021-11-17 09:50:25 +08:00
README.md fix: typo 2021-11-17 09:47:33 +08:00
go.mod init 2021-11-17 09:44:15 +08:00
xorencrypt.go feat: add default key 2021-11-17 09:50:25 +08:00
xorencrypt_test.go feat: add default key 2021-11-17 09:50:25 +08:00

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)