Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2009, 06:26 PM
richardnesme
Guest
 
Posts: n/a
Question Private key reading

Hello.
I have been trying ro read a damn private key for weeks without success?
It's a RSA pkcs8 private key in DER format that goverment provided to sign documents.
It's a password encrypted .key file.
I have read the book, test many examples and it doesn't works.
I have tried to read it as a keystore file (pcks12) but I don't know the tag name.
I have tried to read it with PKCS8EncodedKeySpec class and unwrap the key with Cipher, but I don't know which method goverment used to encrypt it.
Please, please, please... help.
Thank you in advance.
 
Old April 28th, 2009, 06:56 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

It should be processable using the EncryptedPrivateKeyInfo class. You'll need to check the algorithm IDs to determine what PBE mechanism to use.

Regards,

David





Similar Threads
Thread Thread Starter Forum Replies Last Post
X509 public/private key signing and mmc ZeeKoei General .NET 1 January 23rd, 2008 03:52 AM
Private Key with Associated Certificate bdblhk3 BOOK: Beginning Cryptography with Java 1 October 22nd, 2007 04:32 PM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
prob with certificate's public/private key shiby_chacko1@rediffmail. C# 0 April 5th, 2005 07:18 AM
CryptoAPI Private Key Dialog Box owain Pro VB.NET 2002/2003 1 November 12th, 2004 11:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.