crypto_practices v0.0.1 CaesarCipher
Documentation for CaesarCipher. plaintext only support 26 words and 10 number: abcdefghijklmnopqrstuvwxyz0123456789, and key only support 0 ~ 36, maybe it can bigger, but we will modulo operation.
Link to this section Summary
Link to this section Functions
Link to this function
cryptanalysis(ciphertext)
cryptanalysis(string).
Examples
iex> CaesarCipher.cryptanalysis("jgnnq") "hello"
Link to this function
decode(ciphertext, key)
decode(string, integer).
Examples
iex> CaesarCipher.decode("jgnnq", 3) "hello"
Link to this function
encode(plaintext, key)
encode(string, integer).
Examples
iex> CaesarCipher.encode("hello", 2) "jgnnq"