• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Where is private key?

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


30 81 89 02 81 81 00 a0 b7 87 ee dc a7 40 50 bf 07 c3 c2 a2 61 90 84 1d ab 44 12 f5 48 b1 21 88 52 c1 aa ed 1a 3d 8e 99 92 6e ef 99 68 0a 4b 9d 20 90 ea a5 71 99 97 25 fe 22 c8 22 29 26 53 06 9f 59 41 1f 12 27 3e f8 f4 db b5 b4 96 3b f9 05 d9 3f 99 7c bd db b8 85 08 22 8e dc d2 9f a8 30 6c 2e 6d f3 8d 0f 82 78 ba 73 6d ce a1 00 2d ff 8f 65 cd 8d 8e 45 67 6f 42 8c fc 31 8f c0 68 f8 8e b7 b7 cc d4 0b 0b 02 03 01 00 01



It's my public key. Please send me some data encrypted with this public key and I will decrypt it with my private key.

Where can I find my private key??? I googled and found that it's in .keystore file but it seems that this file is also encrypted. :roll:

I created certificate with following command: keytool -genkey -alias tomcat -keyalg RSA
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This article might help.

There are many similar articles in the web to do this stuff.
 
ankur rathi
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rahul Bhattacharjee:
This article might help.

There are many similar articles in the web to do this stuff.



I really didn't understand much from the article.
This article has a program which outputs information about private key and public key used in different algorithms (RSA, DSA and DiffieHellman) comes with Sun Security package (I guess).

Not able to relate this with my question. :roll:
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This article explains the following things:

Sample codes attached with the article.

What is public key encryption
How to generate key pairs
How to use the key to encrypt and decrypt messages.

Google to find many more code examples.

Hope this helps,
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..
can anyone help in this. if i have generated public and private key and stored them in database (say MYSQL) then how do i encrypt and decrypt using those public and private key. Any Sample code will be of great help
 
Liar, liar, pants on fire! refreshing plug:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic