在这种情况下使用一个时间垫是否值得,该时间垫使用了不止一次。谢谢

时间:2019-05-23 22:52:39

标签: aes one-time-pad

我需要了解他们如何不止一次使用一个时间片,以及该算法的问题所在。

key1<--generate 128 bit
key2<--generate 256 bit
key Size <-- key1 +key 2

Encryption(!File stream)
start
while(!endoffile)
start
while(StringA.size<128 bit && stringB<256 bit)
start
         stringA+=char(1)
         stringB+=char(2)+char(3)
end while
ciphertext1 <--- AES encrypt(string(A),key1)

ciphertext2 <--- OTP encrypt(string(B),key2)
ciphertext   <----ciphertext1 +ciphertext2

HDFS <---ciphertext(upload)

end while

0 个答案:

没有答案