Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 10th, 2011, 05:59 AM
Registered User
 
Join Date: Aug 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retreive pgp secret key

Hi,
i'm using opengpg to decrypt an encrypted file with GnuPG. I have tested some example code giving in the example folder for opengpg. Here, to decrypt file, we need to pass the secret key file as a parameter. My problem is that i want to retreive this secret key from the keyring og gpg and not giving in it as a file. I know that this key is password protected but is there another way to retreive secret key than searching it from an inputstream variable.

Tnahks
Reply With Quote
  #2 (permalink)  
Old August 10th, 2011, 08:42 PM
dgh dgh is offline
Wrox Author
Points: 843, Level: 11
Points: 843, Level: 11 Points: 843, Level: 11 Points: 843, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 203
Thanks: 0
Thanked 19 Times in 19 Posts
Default

Use the PGPSecretKeyRingCollection class.

Regards,

David
Reply With Quote
  #3 (permalink)  
Old August 12th, 2011, 06:49 AM
Registered User
 
Join Date: Aug 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

yes I'm using this class to search the key. But this class need a stream input. Where and how can i find the default file storage of secret keys ?
Reply With Quote
  #4 (permalink)  
Old August 12th, 2011, 09:29 PM
dgh dgh is offline
Wrox Author
Points: 843, Level: 11
Points: 843, Level: 11 Points: 843, Level: 11 Points: 843, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 203
Thanks: 0
Thanked 19 Times in 19 Posts
Default

You'll need to check your gpg documentation to find the location of the default secret key ring file.

Regards,

David
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PGP Encryption everest C# 2005 4 October 28th, 2007 08:20 PM
Identifying a PGP file bnraju1 BOOK: Beginning Cryptography with Java 4 July 13th, 2007 04:05 PM
Encrypting using a secret key Littlen BOOK: Beginning Cryptography with Java 3 April 27th, 2007 06:01 PM
pgp file? ktchlin C# 1 July 26th, 2004 07:49 AM
What's the secret? Adam H-W Flash (all versions) 2 March 24th, 2004 12:54 PM



All times are GMT -4. The time now is 02:10 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.