83 8 Create Your Own — Encoding Codehs Answers
CodeHS 8.3.8: Create Your Own Encoding , a key feature you must implement is
def encode(message): encoded = [] for ch in message: new_code = ord(ch) + 3 if new_code > 126: new_code = new_code - 95 # wrap to 32 encoded.append(chr(new_code)) return ''.join(encoded) 83 8 create your own encoding codehs answers
- Use a combination of substitution and transposition ciphers for added security.
- Experiment with different alphabets, such as binary or hexadecimal.
- Use a keyword or passphrase to encode and decode the message.