摘要:
Security and Cryptography in Python - Block Cipher(2) Double DES from pyDes import * import random message = "01234567" key_11 = random.randrange(0, 2 阅读全文
摘要:
Security and Cryptography in Python - Block Cipher(1) DES https://en.wikipedia.org/wiki/Data_Encryption_Standard GOST https://en.wikipedia.org/wiki/GO 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(4) Low entropy - Brute force of our Stream Cipher import random class KeyStream: def __init__(sel 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(3) The problem of re-use of keys in Stream Ciphers import random class KeyStream: def __init__(se 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(2) Implementation of the Authenticity problem with Stream Ciphers import random class KeyStream: 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(1) The practical implementations of One Time Pads Real-life One Time Pad? 1Gb message requires 1G 阅读全文
摘要:
Security and Cryptography in Python - One Time Pad XOR Example def xor(x, s): print(x, 'xor', s, '=', x^s) def xorb(x, s): print(bin(x), 'xor', bin(s) 阅读全文