java - 求MD5withRSA算法的PHP实现?
Jun 06, 2016 pm 08:24 PM
最近用php做api开发demo的时候,合作方采用的是java的MD5withRSA加签,现求MD5withRSA加签算法的PHP实现,网上好像都只有验签操作...谢谢。
回复内容:
最近用php做api开发demo的时候,合作方采用的是java的MD5withRSA加签,现求MD5withRSA加签算法的PHP实现,网上好像都只有验签操作...谢谢。
phpseclib Hash 默认使用 sha1,你可以通过 setHash 方法手动设置为 MD5:
$rsa = new Crypt_RSA(); $rsa->setHash('md5');

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development

How do you parse and process HTML/XML in PHP?

Break or return from Java 8 stream forEach?

PHP Program to Count Vowels in a String

Java Made Simple: A Beginner's Guide to Programming Power

Create the Future: Java Programming for Absolute Beginners

Java Program to Find the Volume of Capsule
