Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Александр Мудрик
WiFI_HSE
Commits
f2b367b4
Commit
f2b367b4
authored
6 months ago
by
Александр Мудрик
Browse files
Options
Download
Patches
Plain Diff
Scrambler/Unscrambler
parent
ac9f9d71
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unscrambler.m
+12
-0
unscrambler.m
with
12 additions
and
0 deletions
+12
-0
unscrambler.m
0 → 100644
+
12
−
0
View file @
f2b367b4
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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets