|
||||||||||||||||||
|
XOR encryption is a trivially simple symmetric cipherXOR encryption is a trivially simple symmetric cipher which is used in many applications where security is not a defined requirement. The XOR Operator The six bitwise operators, as defined in the C programming language, are: Operation Symbol The XOR operator returns a 1 when the value of either the first bit or the second bit is a 1. The XOR operator returns a 0 when neither or both of the bits is 1. This is best illustrated in the following chart: First Bit Second Bit Result The XOR operator is used to “flip” bits (zeroes and ones) in a piece of plaintext to create a ciphertext. Converting Plaintext to Ciphertext with XOR Encryption ASCII representation of the plaintext: FAQ ASCII representation of the key: V Converting Ciphertext to Plaintext with XOR Encryption Let’s decrypt our ciphertext to recreate our original plaintext. Ciphertext Key ‘V’ Plaintext Do the math yourself with the other two characters of plaintext to prove this to yourself. Many encryption algorithms utilize the XOR operator as part of their operations. Understanding XOR and the other binary operators is a necessary step on the path to becoming a cryptologist. XOR Security XOR encryption should not be utilized for any data which you would want to protect. source: http://www.tech-faq.com/xor-encryption.shtml Some More Interesting Articles |
||||||||||||||||||||||||||||||||
|
|
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URI
Leave a comment
If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.