About jsencrypt.js, the RSA library signature mode client decrypts and returns false

when using the RSA library jsencrypt.js as signature, the
PHP server encrypts the information using the server"s private key and returns the encrypted ciphertext to the client. The
client uses the jsencrypt.js library to decrypt, uses the server"s public key for decryption, but returns false

I have tested that the key pair is a pair. In the PHP test, the public key of the server can be successfully decrypted and the original information can be restored.
but it is not possible to use the jsencrypt.js library on the client side. The FALSE,
PHP server public key is exactly the same as the client public key.

do you have this problem?

Jul.07,2021

do you have a problem with the jsencrypt library?
or you can reverse test;
client jsencrypt public key encrypted data
submit to backend php for decryption:

    // 
    $private_key = "";
    
    $private_resource = openssl_pkey_get_private($private_key);

    // 
    @openssl_private_decrypt(base64_decode($encrypted),$decrypted,$private_resource);

    return $decrypted;

I have returned kjur, to use jsrsasign this library is good


excuse me, have you solved this problem?


have you solved this problem?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1becb21-30e77.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1becb21-30e77.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?