摘要: 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 阅读(66) 评论(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 阅读(58) 评论(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 阅读(55) 评论(0) 推荐(0) 编辑