MD5 with RSA in php

前端 未结 1 2006
余生分开走
余生分开走 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)
提交回复
热议问题