XOR encryption/decryption when the key is more than one byte long? -
suppose character 'b' used key xor encryption. in case, encrypting plain text done xor-ing each byte (character) of text ascii code of 'b'. conversely, plain text can obtained ciphered text xor-ing 'b's ascii code again. understood.
however, how 1 encrypt when key (password) string of characters? suppose encrypting password 'adg'. in case, plain text ciphered via xor-ing each of bytes value of xor d xor g? if not, how?
a way repeat key cover plain text.
e.g. key = rtti, plaintext = "how one"
text: how 1 key: rttirttirttirttirtti
each character in plain text xor'd corresponding key character below it.
Comments
Post a Comment