> Hi Mike,
>
> I am newbie for these problems,
I believe you.
> I have tested without succes followong code lines
>
[quoted text clipped - 10 lines]
> alice = kp.getPublic().getEncoded();
> aliced = new String(alice,de);
new String(alice,...) is not going to do you any good.
>
>
[quoted text clipped - 3 lines]
> //------------------------------------------
> BASE64Decoder decoder2 = new BASE64Decoder();
byte[] b64decoded = decoder2.decodeBuffer(alicec);
if (b64decoded.length!=alice.length) {
System.out.println("Base 64 decoded array has "+
b64decoded.length+" bytes but alice has "+
alice.length+" bytes.");
} else {
int jj=alice.length;
while (--jj>=0 && alice[jj]==b64decoded[jj]) {
}
if (jj<0) {
System.out.println("Hooray! The alice array "+
"has been reproduced from the base 64 String.");
} else {
System.out.println("alice["+jj+"]="+alice[jj]+
"!=b64decoded["+jj+"]="+b64decoded[jj]);
}
}
> byte[] utf8Bytes4 = aliced.getBytes(de);
>
> System.out.println("alice "+alice);
What do you expect this to print? Do you think it will magically
print the bytes of the alice array in hexadecimal? Actually, what it
prints does not depend at all on the contents of the alice array.
> System.out.println("alice4 "+utf8Bytes4);
> System.out.println("alice6 "+utf8Bytes6);
[quoted text clipped - 3 lines]
>
> Philippe
--Mike Amling
pcouas@infodev.fr - 10 Feb 2004 19:24 GMT
Thank you very much Mike.
Bye
Philippe
Michael Amling - 11 Feb 2004 15:51 GMT
> Thank you very much Mike.
>
> Bye
You're welcome, Philippe. De rien.
--Mike Amling