Encrypt a String Using a Key (Simple Symmetric Cipher)

Asked at Axon · Coding Questions · Difficulty: Easy

Given a key `key` and a plaintext string `s`, implement a function to encrypt the string and return the ciphertext.

Loading the problem…