0

Is it possible to use "RSAwithSHA1" as used for Signature.getInstance("RSAwithSHA1") in PHP?

I've generated the keys using:

openssl genrsa -out key.pem 1024
Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263
isaacerd
  • 1
  • 2
  • @YassinHajaj i have a private key, for create signature and use in hava, php to java – isaacerd Nov 20 '15 at 21:22
  • SHA1withRSA (**not** RSAwithSHA1, first the hash is calculated, then the RSA modular exponentiation is used) indicates the PKCS#1 v1.5 padding scheme for signature generation using a SHA-1 message digest / secure hash. PHP also implements this scheme. You can see how in the duplicate. – Maarten Bodewes Nov 21 '15 at 10:41

0 Answers0