cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Lounge
Encrypting with a long user key
Encrypting with a long user key
Mar 16, 2014 at 1:25am UTC
Daleth
(1030)
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
Mar 16, 2014 at 1:28am UTC
Mar 16, 2014 at 7:59am UTC
MiiNiPaa
(8886)
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.