GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added PKGBUILD for openssh-dnssec
[mirrors/Programs.git]
/
php
/
skripty
/
xor_8bits.php
1
<
?php
2
3
function
xor_bytes
(
$bina
,
$binb
) {
4
$bin
=
""
;
5
$x
=
8
;
6
while
(
$x
) {
7
if
(
$bina
[
$x
-
1
]
XOR
$binb
[
$x
-
1
])
8
{
$bin
= (
1
.
$bin
); }
else
{
$bin
= (
0
.
$bin
); }
9
$x
--;
10
}
11
return
$bin
;
12
}
13
14
echo
xor_bytes
(
"10110000"
,
"10010000"
);
15
16
?
>
This page took
1.187787 seconds
and
4
git commands to generate.