Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Decrypt oracle data with java
In article <347d629d.0204160724.56822214_at_posting.google.com>, Samuel
Zarza <samuel_zarza_at_geocities.com> writes
>
>byte[] textoDescifrado = desCipher.doFinal(myCipheredText.getBytes());
A String is not the same as a byte[]; this is a common problem that simple conversion from 'C' idioms runs in to. How did you get the Text? Is there any ASCII armouring to undo first?
>System.out.println(new String(textoDescifrado));
>
>The result isn't the same between oracle and this code.
>
>Thanks.
>
>Regards, Samuel