Say I have a binary number message of 0100110101100101 and a binary key of 001.
How can I repeat the key to be the same length as the message? As in take the length of the message and then repeat the pattern of the key till the length of the message is reached?
In the example the output should be 0010010010010010
Thanks.