在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/PHP  Python  網(wǎng)絡(luò)安全/ python的rsa加密代碼翻譯成php

python的rsa加密代碼翻譯成php

import rsa
def get_encrypted_pw(self,password,nonce,servertime,pub_key):
    rsa_e = 65537 #0x10001 
    pw_string = str(servertime) + '\t' + str(nonce) + '\n' + str(password)
    key = rsa.PublicKey(int(pub_key, 16), rsa_e)
    pw_encypted = rsa.encrypt(pw_string, key)
    passwd = binascii.b2a_hex(pw_encypted)
    return passwd

求解如何翻譯成php,謝謝?。ú榱藀hp手冊的openssl_public_encrypt但不知道怎么設(shè)置py的rsa_e參數(shù))

回答
編輯回答
選擇
2017年10月24日 13:03