mirror of
https://codeberg.org/scip/twenty4.git
synced 2025-12-16 19:40:57 +01:00
33 lines
469 B
Bash
Executable File
33 lines
469 B
Bash
Executable File
#!/bin/sh
|
|
|
|
an=./analyze
|
|
cr=./stream
|
|
|
|
mkdir -p t
|
|
|
|
jot () {
|
|
r=$1;
|
|
if test -z "$r"; then
|
|
echo "jot <rounds>";
|
|
else
|
|
perl -e "foreach(0..$r){print \"\$_\n\";}";
|
|
fi
|
|
}
|
|
|
|
./prepare-analyze
|
|
|
|
for L in `jot 255`; do
|
|
XL=`printf "%02x" $L`
|
|
clear="t/$XL.clear"
|
|
for K in `jot 255`; do
|
|
XK=`printf "%02x" $K`
|
|
cipher="t/$XLx$XK.cipher"
|
|
cat $clear | $cr 0x$K e > $cipher
|
|
echo -n "$XL w/ $XK: "
|
|
$an $cipher 1
|
|
rm -f $cipher
|
|
done
|
|
done
|
|
|
|
|