security - Can One-Time-Pad key be reused if encrypted plaintext is random? -


I want to encrypt random data with a single key, which is shorter than plain text.

Do I use AES or any other strong encryption algorithm, or can I use OTP, i.e. block by blocking the travel text (black block) with only the unique key?

Example data is 1024 bits tall and is random. The key is 128-bit long (even at random). Is it safe to encrypt data by adding 8 consecutive 128-bit blocks with the same key?

For example the data is 1024 bits tall and is random. The key is 128-bit long (even at random). Is it safe to encrypt data by adding 8 consecutive 128-bit blocks with the same key?

If your data is random, then the answer is yes.

You can view your actual data as an OTP key. It is purely random and used only once, so there is no way to recover any keys or data.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -