摘要:
import gmpy2 p = 17 g = 3 x_a = 15 x_b = 13 # y_a = a_g ^ x_a mod a_p y_a = 6 # y_a = a_g ^ b_x mod a_p y_b = 12 # a # y_s = y_b ^ x_a mod a_p # y_s = 阅读全文
摘要:
import gmpy2 q = 7 p = 11 e = 13 m = 71 if __name__ == '__main__': print('step 0 公钥和私钥') print(' 公钥(n,e)') print(' 私钥(n,d)') # step 1 n = p * q print( 阅读全文