Hi all,


i need to convert string to private and public key..
if u have any idea please share with me..

KeyPairGenerator keyGen = KeyPairGenerator.getInstance( "DSA" );
keyGen.initialize( 1024 );
KeyPair pair = keyGen.generateKeyPair();
this.privateKey = pair.getPrivate();
this.publicKey = pair.getPublic();
// System.out.println( "Public key: " + getString(publicKey.getEncoded()));
// System.out.println( "Private key: " + getString(privateKey.getEncoded()));