Recently, when I used php for api development demo, the partner used the java MD5withRSA signature algorithm. Now, the PHP implementation of the MD5withRSA signature algorithm seems to have only been performed on the internet... Thank you. Recently, when I used php for api development demo, the partner used the java MD5withRSA signature algorithm. Now, the PHP implementation of the MD5withRSA signature algorithm seems to have only been performed on the internet... Thank you.
Reply content:
Recently, when I used php for api development demo, the partner used the java MD5withRSA signature algorithm. Now, the PHP implementation of the MD5withRSA signature algorithm seems to have only been performed on the internet... Thank you.
Phpseclib Hash uses sha1 by default. You can manually set it to MD5 using setHash:
$ Rsa = new Crypt_RSA (); $ rsa-> setHash ('md5 ');