File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Java in General
create a public key object
Joined: Jan 18, 2008
Jan 18, 2008 06:44:00
i'am trying to create a public key object. this is my code :
pubKeySpec = new
keyFactory = KeyFactory.getInstance("DSA");
pubKey = keyFactory.generatePublic(pubKeySpec);
3- signAl = Signature.getInstance(SHA1withDSA);
where pkbytes is an array of bytes that i've created from the file that content the public key
but when i execute the programm, i get an this exception
InvalidKeySpecException.Someone has an idea ?
I agree. Here's the link:
subject: create a public key object
unable to read key values from file
string encrypt/decrypt API
Playing with KeyPair
need to generate RSA keys from txt files
problem with RSA..... folks please help!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014