Opposite operation of XOR
6 views (last 30 days)
Show older comments
a='01101010'
key='10010010'
Cipher=xor(a,key)= 11111000
now how to get 'a' back if i have key & Cipher?
2 Comments
Guillaume
on 19 Oct 2018
wht func is used as a reverse of bitxor
The reverse of any xor operation is itself, so the reverse of bitxor is bitxor. This is a fundamental property of xor, applying it twice gets you back where you started.
Answers (1)
See Also
Categories
Find more on Encryption / Cryptography in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!