Introduction:
介绍:
Diffie Hellman key exchange algorithm is a method for securely or secretly exchanging cryptographic keys or a key use in encryption or decryption over a public communications channel or away. Keys are not eventually exchanged – they are joint and derived. It is named after their inventors who invent this is Whitfield Diffie and Martin Hellman.
Diffie Hellman密钥交换算法是一种用于安全地或秘密地交换密码密钥或在公共通信信道上或远离加密或解密过程中使用的密钥的方法。 密钥最终不会交换-它们是联合的和派生的。 它以发明这种发明的发明家的名字命名,是Whitfield Diffie和Martin Hellman。
If Alice and Bob want to communicate with each other, they firstly discuss a variable between them a large prime number "p", and a generator or base "g" (where 0 < g < p).
如果爱丽丝和鲍勃想互相交流,他们首先讨论一个变量,它们之间有一个大质数“ p”,以及一个生成器或基数“ g”(其中0 <g <p)。
Alice chooses "a" secre