Encrypting with a long user key

What is the usual method if the string of data being encrypted is shorter in length than the user key? I was thinking about forcing the data string to be the same length as the key, but that would cause noticeable patterns in the output.

The main algorithm involves XOR'ing.
Last edited on
Either fill missing part with 0's or add single end-of-data marker and fill the rest with random data.
Topic archived. No new replies allowed.