ciphers.atbash¶
https://en.wikipedia.org/wiki/Atbash
Functions¶
|
|
|
|
|
Let's benchmark our functions side-by-side... |
Module Contents¶
- ciphers.atbash.atbash(sequence: str) str ¶
>>> atbash("ABCDEFG") 'ZYXWVUT'
>>> atbash("aW;;123BX") 'zD;;123YC'
- ciphers.atbash.atbash_slow(sequence: str) str ¶
>>> atbash_slow("ABCDEFG") 'ZYXWVUT'
>>> atbash_slow("aW;;123BX") 'zD;;123YC'
- ciphers.atbash.benchmark() None ¶
Let’s benchmark our functions side-by-side…