Security and Cryptography in Python - Key Exchange(1)
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)
g = 2
for i in range(20):
print(i, ((g**i) % 5))
Running Result:
相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。