How to create the Cipher Object

Hi can anyone help me how to create a cipher object which does Null Padding if the input data length is not a multiple of 8 bytes in the case of DES in SunJCE provider.
[175 byte] By [buddy_boya] at [2007-11-27 8:51:36]
# 1

You would be better off describing your problem rather than the imagined solution.

A decent cipher will pad the input to the required length. If you already have ciphertext and it isn't padded correctly either (i) it isn't complete or (ii) you don't have a correct description of how it was enciphered.

ejpa at 2007-7-12 21:05:08 > top of Java-index,Security,Cryptography...
# 2
> You would be better off describing your problem> rather than the imagined solution.If the input block is not a multiple of 8 bytes, the input block should be padded with binary zeroes ( NULL ) until the block becomes a multiple of 8 bytes( DES).
buddy_boya at 2007-7-12 21:05:08 > top of Java-index,Security,Cryptography...
# 3

> Hi can anyone help me how to create a cipher object

> which does Null Padding if the input data length is

> not a multiple of 8 bytes in the case of DES in

> SunJCE provider.

There is no padding scheme within the JCE to do this, you will have to perform the padding yourself. It is very easy and is actually one of my standard examples but I no longer post full code examples (especially to people who ignore me).

sabre150a at 2007-7-12 21:05:08 > top of Java-index,Security,Cryptography...
# 4

> > Hi can anyone help me how to create a cipher

> object

> > which does Null Padding if the input data length

> is

> > not a multiple of 8 bytes in the case of DES in

> > SunJCE provider.

>

> There is no padding scheme within the JCE to do this,

> you will have to perform the padding yourself. It is

> very easy and is actually one of my standard examples

> but I no longer post full code examples (especially

> to people who ignore me).

If i had hurt you, please excuse me. I just started crawiling in this field and i need help of you experts.

buddy_boya at 2007-7-12 21:05:08 > top of Java-index,Security,Cryptography...