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]
# 1
i just do not know what is "xor encryption" ; maybe if you give the code it will be helpful :)
calvino_inda at 2007-7-12 16:22:14 > top of Java-index,Java Essentials,Java Programming...
# 2

> 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?

prob.not.sola at 2007-7-12 16:22:14 > top of Java-index,Java Essentials,Java Programming...