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
Java SE 8 for the Really Impatient
this week in the
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 ?
It is sorta covered in the
JavaRanch Style Guide
subject: create a public key object
Playing with KeyPair
unable to read key values from file
string encrypt/decrypt API
problem with RSA..... folks please help!
need to generate RSA keys from txt files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014