上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 57 下一页
摘要: Security and Cryptography in Python - Key Exchange(3) Diffie–Hellman key exchange: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange P 阅读全文
posted @ 2021-02-14 16:14 晨风_Eric 阅读(71) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Key Exchange(2) def is_prime(p): for i in range(2, p): if p % i == 0: return False return True print(is_prime(7) 阅读全文
posted @ 2021-02-14 15:49 晨风_Eric 阅读(65) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Key Exchange(1) # 14 + 15 mode 12 val = (14 + 15) % 12 print(val) # 4 * 5 mode 12 val = (4 * 5) % 12 print(val) 阅读全文
posted @ 2021-02-14 15:19 晨风_Eric 阅读(60) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Block Cipher(3) 阅读全文
posted @ 2021-02-10 10:21 晨风_Eric 阅读(50) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Block Cipher(2) Double DES from pyDes import * import random message = "01234567" key_11 = random.randrange(0, 2 阅读全文
posted @ 2021-02-10 10:13 晨风_Eric 阅读(72) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Block Cipher(1) DES https://en.wikipedia.org/wiki/Data_Encryption_Standard GOST https://en.wikipedia.org/wiki/GO 阅读全文
posted @ 2021-02-08 20:56 晨风_Eric 阅读(96) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Stream Ciphers(5) Stream Cipher in Real Life - A5/1 Linear Feedback Shift Registers(LFSR) 阅读全文
posted @ 2021-02-06 19:56 晨风_Eric 阅读(46) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Stream Ciphers(4) Low entropy - Brute force of our Stream Cipher import random class KeyStream: def __init__(sel 阅读全文
posted @ 2021-02-06 18:46 晨风_Eric 阅读(84) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-02-06 18:17 晨风_Eric 阅读(78) 评论(0) 推荐(0)
摘要: Security and Cryptography in Python - Stream Ciphers(2) Implementation of the Authenticity problem with Stream Ciphers import random class KeyStream: 阅读全文
posted @ 2021-02-06 15:49 晨风_Eric 阅读(71) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 57 下一页