omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / exercises / atbash-cipher / atbash-cipher.om
| 1 | note Exercism-style exercise "atbash-cipher": https://exercism.org/tracks/python/exercises/atbash-cipher |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note encode writes the Atbash cipher of s into o (a to z, b to y, ...; letters lower case, digits |
| 4 | note kept, everything else dropped) in groups of 5 separated by one space; decode writes the plain |
| 5 | note text of s (spaces dropped). Both return the number of bytes written. |
| 6 | note Check it with: sh exercise.sh exercises/atbash-cipher |
| 7 | om2 |
| 8 | fn encode s view uchar * o edit uchar * to ulong |
| 9 | note replace this line with your solution |
| 10 | trap 13 |
| 11 | end |
| 12 | fn decode s view uchar * o edit uchar * to ulong |
| 13 | note replace this line with your solution |
| 14 | trap 13 |
| 15 | end |