Commit f2b367b4 authored by Александр Мудрик's avatar Александр Мудрик
Browse files

Scrambler/Unscrambler

parent ac9f9d71
No related merge requests found
Showing with 12 additions and 0 deletions
+12 -0
unscrambler.m 0 → 100644
function UnscrambledBits = unscrambler(data,init)
UnscrambledBits=zeros(size(data));
temp=init;
for i=1:length(data)
val=xor(temp(4), temp(7));
temp=[val temp(1:end-1)];
UnscrambledBits(i)=xor(data(i),val);
end
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment