Hi schw,
yes u could use padding..
say for example, in your case, u can pad extra 18 bytes to ur data
(with 0s maybe)
so it will be 42 bytes.
when the data is decrypted, u will have to clean-up the trailing pads.
U also might want to check the API for DES encryption with pading
mechanism.
http://java.sun.com/j2se/1.5.0/docs/guide/security/jce/JCERefGuide.html
u can see how the padding is done with
Cipher.getInstance("DES/ECB/PKCS5Padding");
HTH
> Hi
>
[quoted text clipped - 14 lines]
> best regards,
> schw
Thomas Weidenfeller - 15 Aug 2006 08:43 GMT
> Hi schw,
> yes u could use padding..
> say for example, in your case, u can pad extra 18 bytes to ur data
> (with 0s maybe)
And you could use real words like "you".