In cryptography, a key is a string of characters used to scramble data systematically. It is designed based on a certain algorithm to keep the key unique and difficult to guess. The receiver can only decrypt ciphertext into plain text with the right key. Longer keys have more possible permutations, hence are harder to guess and have higher security.