ciphers.a1z26¶
Convert a string of characters to a sequence of numbers corresponding to the character’s position in the alphabet.
https://www.dcode.fr/letter-number-cipher http://bestcodes.weebly.com/a1z26.html
Functions¶
|
|
|
|
|
Module Contents¶
- ciphers.a1z26.encode(plain: str) list[int]¶
>>> encode("myname") [13, 25, 14, 1, 13, 5] >>> encode("abCd") Traceback (most recent call last): ... ValueError: plain must contain only lowercase letters (a-z) >>> encode("n0w") Traceback (most recent call last): ... ValueError: plain must contain only lowercase letters (a-z) >>> encode("later!") Traceback (most recent call last): ... ValueError: plain must contain only lowercase letters (a-z)
- ciphers.a1z26.main() None¶