MD5 with RSA in php

前端 未结 1 2007
余生分开走
余生分开走 2021-01-27 13:08

I\'m trying to implement digital signature in php as in java sample code below:

            Signature rsaSig = Signature.getInstance(\"MD5withRSA\");
           


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 13:33

    By default phpseclib uses sha1 as the hash. You probably need to do $rsa->setHash('md5').

    0 讨论(0)
提交回复
热议问题