1 year ago

#302109

test-img

Mohammed Fazil

How i can us xor encryption in matlab without getting a special character? Like $ or some unreadable □ by matlab?

Let us say i want to encrypt text says "hello world" with key is '01011010' using XOR

I converted the text into binary using Dec2Bin function Then reshape it in way which i can XOR it with the key Than make the Key same length as the text After the XOR i get some different binary value When i convert this binary back to text i get special character Different type that some of them can't even be read by matlab like this some kind □ other just like $ And because i get this special character, i can't do decryption! I get different word like ( hello õorld ) sometime when the text is longer i get \n which Ignores line! How i can solve this? How i can get only abc or some character that are not space or anything that can't be input into matlab?

matlab

encryption

binary

xor

0 Answers

Your Answer

Accepted video resources