def get_sp(password, pubkey, servertime, nonce):
# rsa??
key = rsa.PublicKey(int(pubkey, 16), 65537)
message = str(servertime) + '\t' + str(nonce) + '\n' + password
passwd = rsa.encrypt(message.encode("utf8"), key)
# ????????16??
sp = binascii.b2a_hex(passwd)
# print(sp)
return sp
# ?????
评论列表
文章目录