Computer scienceAlgorithms and data structuresAlgorithmsString coding algorithmsCryptographic coding

XOR cipher

Remembering the algorithm

Report a typo

Put the steps of the XOR algorithm into correct order:

Put the items in the correct order
For each symbol of the message and the corresponding one of the key get their binary numeric representations
Repeat the key so that its length matches the one of the message
XOR the numeric representations of the symbols
Convert the result of the XOR operation back into a symbol

Create a free account to access the full topic