jsbn

    2熱度

    1回答

    我可以在客戶端使用jsbn成功生成公鑰/私鑰對。使用這些密鑰加密和解密客戶端很好。我也可以將該公鑰傳輸到服務器,並通過PHP將其存儲在MySQL中。 我無法使用jsbn公鑰對PHP中的某些內容進行加密,然後使用jsbn私鑰對客戶端進行解密。 // attempting to encrypt in PHP using the jsbn public key. // (this public key

    0熱度

    1回答

    我在JavaScript下面的代碼爲RSA FPGA實現http://www-cs-students.stanford.edu/~tjw/jsbn/: // Return the PKCS#1 RSA encryption of "text" as an even-length hex string function RSAEncrypt(text) { var m = pkcs1pa