Module fundamentals

Source
Expand description

Modules categorized by Codewars labels - 7kyu *** Fundamentals ***

Functionsยง

decipher
The GADERYPOLUKI is a simple substitution cipher used in scouting to encipher messages. Write the decrypt function.
digital_encipher
Digital Cypher assigns to each letter of the alphabet a unique number. Instead of letters in encrypted word we write the corresponding number. Then we add to each obtained digit consecutive digits from the key. Write a function that accepts string and key number and returns an array of integers. Write the Encipher function.
encipher
The GADERYPOLUKI is a simple substitution cipher used in scouting to encipher messages. The encryption is based on short, easy to remember key. The key is written as paired letters, which are in the cipher simple replacement. The most frequently used key is โ€œGA-DE-RY-PO-LU-KIโ€. Your task is to help scouts to encrypt and decrypt thier messages. Write the Encipher and Decipher functions.
substitute ๐Ÿ”’
substitute_num ๐Ÿ”’