Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create Hash value using Private Key & Public Key

843810Apr 29 2002 — edited Oct 7 2002
Hi Java Gurus,

I need to build a simple Application.
Because i don't have a certificate I want to use one of the certificate available on the Internet Explorer .

I have exported a certificate say Thawte Certificate to C: drive
I want to sign a string using the Private key of this certificate and generate a hash value h1.

The application then takes the same string and generates a hash value h2 with the Public Key of the certificate

If H1=H2
then authentication succeds else fail

How to do this .How do i get the Private key of the certificate and sign .

I don't want to create key using Keygenerator using DES Algoirthm..

Sample code would be very helpful
Thankyou in advance

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2002
Added on Apr 29 2002
4 comments
1,119 views