Simple Encryption
Hi buddies... I did the simple encryption program using XOR.... In that iam using a key which is a single character,and the data is a string.... based on the ASCII value of the data and password iam encrypted using XOR similarly in decryption side iam getting the same input what i given.Is it possible to use more than one character as password and do the encryption using XOR........... anyone tel the way
[414 byte] By [
83Krisha] at [2007-11-27 6:06:31]

> Hi buddies... I did the simple encryption program
> using XOR.... In that iam using a key which is a
> single character,and the data is a string.... based
> on the ASCII value of the data and password iam
> encrypted using XOR similarly in decryption side iam
> getting the same input what i given.Is it possible to
> use more than one character as password and do the
> encryption using XOR........... anyone tel the way
yes,
but you then need to pad your plaintext to the size of the key.
say your key is 'hello' you need to make sure the message you encrypt has a length that is a multiple of 5 (number of letters in 'hello'). so then you apply the key one block at a time.
easy.
right?