cryptol/tests/issues/issue474.icry
2017-10-20 11:09:51 -07:00

4 lines
140 B
Plaintext

let mapping = ['A' .. 'Z'] <<< 13
let mapped c = if (('A' <= c) && (c <= 'Z')) then (mapping @ (c - 'A')) else c
:sat \x -> mapped x == 'N'