Decrypt decrypts by left shift of "key" each character of "input"
(input string, key int)
| 29 | |
| 30 | // Decrypt decrypts by left shift of "key" each character of "input" |
| 31 | func Decrypt(input string, key int) string { |
| 32 | // left shift of "key" is same as right shift of 26-"key" |
| 33 | return Encrypt(input, 26-key) |
| 34 | } |