티스토리 뷰

IT study/cryptography

one time pad

까자미가 카카로트냐 2018. 3. 28. 22:03


Consistency Equation : D(K, E(K,M)) = M


20세기초 Vernam이 개발


OTP의 특징은 암호화하려는 메시지가 있다면, 그 메시지의 길이만큼의 동일한 space를 갖는 key가 필요하다는 것이며, 암호문 역시 동일한 space의 String이 된다는 것입니다


c: = E(k,m) = k xor m

       D(k,c) = k xor c


msg : 0101010

key :   1101101

CT :    1000111


Indeed:

   D(K, E(K,M)) = D(K, K xor M) = K xor (K xor M) = (K xor K) xor M =

0 xor M = M


you are given a message(m) and its OTP encryption(c).

Can you compute the OTP key from m and c ?


yes, the key is,,,, K = M xor C



- randomness

- uniform distribution



26 * 26 * 26 * .....


'IT study > cryptography' 카테고리의 다른 글

Polyalphabetic cipher  (0) 2018.03.23
The Caesar cipher  (0) 2018.03.23
what is cryptography?  (0) 2018.03.23
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함