rsa. sign a message with php and validate it in java

With the java crypto package we can create a public and private key, sign a message and validate the signature.

See: [url removed, login to view]


[url removed, login to view]("RSA") , .initialize(1024) , and .generateKeyPair() : Generates the keys.

[url removed, login to view]("MD5WithRSA") : Creates the Signature object.

.initSign([url removed, login to view]()) : Initializes the Signature object.

.update(plainText) and .sign() : Calculates the signature with a plaintext string.

.initVerify([url removed, login to view]()) and .verify(signature) : Verifies the signature.


I need the following php function, that takes the private key and use it to sign a message.

function sign($message, $privateKey) {


return $signature;


I need a complete compatible example with php and java.

1. I use java to create the public and private key, and stores them in a text file

2. A simple php example that prints the result of sign($message, $privateKey) using MD5 with RSA

3. A simple java example that takes that signature and validates it.

Please, bid only if you have experience in MD5 with RSA.



Taidot: Tietoturva, Java, PHP

Näytä lisää: php java rsa, sign php verify java, java php rsa, java rsa signature example, verify rsa sign php java, you and ibm, string j, sign in please, please sign in sign, please sign in, please sign, php verify, php string to html, sign in, ibm update, ibm com, php java rsa verify, php sign message rsa, rsa php java, rsa signature php example, private sign, php create function, i have experience in, the return of david, rsa

Tietoa työnantajasta:
( 23 arvostelua ) Preverenges, Switzerland

Projektin tunnus: #488719

Myönnetty käyttäjälle:


[url removed, login to view] Check the PM

$50 USD 1 päivässä
(15 Arvostelua)

6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hey Serious bidder here Please check your PMB Thanks

$180 USD 3 päivässä
(54 arvostelua)

please check pmb

$50 USD 2 päivässä
(14 arvostelua)

I can do this job for you fast and economical. I am an experienced php and java delveloper who excels in projects like the one you had specified. I had worked for more than 15 years doing web development for fortun Lisää

$50 USD 21 päivässä
(15 arvostelua)

I've implemented public / symmetric key cryptographic function in Java, PL/SQL, PHP therefore I can fullfil the task with maximum oprativity.

$100 USD 10 päivässä
(1 arvostelu)

Hello sir, this project is really suited for me because I've done this type of project before. I'm a Masters student of Information & Communication Systems Security at KTH in Sweden. And I've 2 years job experience in Lisää

$100 USD 3 päivässä
(0 arvostelua)