interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / atbash-cipher / atbash-cipher.om

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