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
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 ?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: create a public key object
Playing with KeyPair
problem with RSA..... folks please help!
unable to read key values from file
need to generate RSA keys from txt files
string encrypt/decrypt API
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013