Decrypt decrypts with Xor encryption
(key byte, cipherText []byte)
| 21 | |
| 22 | // Decrypt decrypts with Xor encryption |
| 23 | func Decrypt(key byte, cipherText []byte) []byte { |
| 24 | plainText := []byte{} |
| 25 | for _, ch := range cipherText { |
| 26 | plainText = append(plainText, key^ch) |
| 27 | } |
| 28 | return plainText |
| 29 | } |
no outgoing calls