projects
/
feed
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
avahi: backport CVE fixes from upstream
[feed/packages.git]
/
utils
/
base16384
/
test.sh
1
#!/bin/sh
2
3
case
"
$1
"
in
4
"base16384"
)
5
opkg
install
coreutils-base64
6
i
=
1
7
while
[
$i
-le
256
];
do
8
s
=
"$(head /dev/urandom | head -c
$i
| base64 -w 0)"
9
if
[
"$(echo
$s
)"
!=
"$(echo
$s
| base64 -d | base16384 -e - - | base16384 -d - - | base64 -w 0)"
];
then
10
exit
$i
11
fi
12
i
=
$
(
expr
$i
+
1
)
13
done
14
esac
15
16
exit
0