@ -176,7 +176,11 @@ def getEncryptKey():
# 获得接收方的公钥
def getRecvPubKey():
# recPubKey = input("plz input Receiver's Public Key: ")
recPubKey = getUserKey()[1]
# 在某某地方获得对方的公钥,然后保存到某个地方,输入路径uoqu
recPubKeyPath = input("请输入接受方的公钥文件路径:")
with open(recPubKeyPath, "rb") as f:
data = f.read()
recPubKey = base64.b64encode(data).decode('utf-8')
return recPubKey
# 获得发送方的公钥