def srp(): state = {"p": _p, "g": _g, "k": _k, "I": I, "P": P} state = step1(state) state = step2(state) state = step3(state) state = step4(state) state = step5(state) state = step6(state) state = step7(state) if (srp_success(state) == False): print("failed") print("srp succ")
def client0(): state = {"p": _p, "g": _g, "k": _k, "I": I, "P": P} state = step1(state) state = step2(state) state["A"] = 0 state = step3(state) state = step4(state) # 客户端没有密钥 state["C_K"] = sha256(intToBytes(0)).digest() state = step6(state) state = step7(state) if (srp_success(state) == False): print("failed") print("client0 succ")
def srp(): state = {"p" : _p, "g" : _g, "k" : _k, "I": I, "P": P } state = step1(state); state = step2(state); state = step3(state); state = step4(state); state = step5(state); state = step6(state); state = step7(state); if(srp_success(state)==False): print("failed"); print("srp succ");
def client0(): state = {"p" : _p, "g" : _g, "k" : _k, "I": I, "P": P } state = step1(state); state = step2(state); state["A"] = 0; state = step3(state); state = step4(state); # 客户端没有密钥 state["C_K"] = sha256(intToBytes(0)).digest(); state = step6(state); state = step7(state); if (srp_success(state)==False): print("failed"); print("client0 succ");