Opposite operation of XOR

51 次查看(过去 30 天)
Alina
Alina 2014-3-7
评论: Guillaume 2018-10-19
a='01101010'
key='10010010'
Cipher=xor(a,key)= 11111000
now how to get 'a' back if i have key & Cipher?
  2 个评论
aaru sri
aaru sri 2018-10-19
wht func is used as a reverse of bitxor
Guillaume
Guillaume 2018-10-19
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.

请先登录,再进行评论。

回答(1 个)

James Tursa
James Tursa 2014-3-7
a = xor(Cipher,key)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by