mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-13 11:10:13 +01:00
11 lines
354 B
Bash
11 lines
354 B
Bash
|
#!/bin/sh
|
||
|
for i in 1 2 3 4 5 6
|
||
|
do
|
||
|
file="test$i.txt"
|
||
|
grep "KEY = " $file | sed -e 's;KEY = ;;' | hex > key$i
|
||
|
grep "PLAINTEXT = " $file | sed -e 's;PLAINTEXT = ;;' | hex > plaintext$i
|
||
|
grep "CIPHERTEXT = " $file | sed -e 's;CIPHERTEXT = ;;' | hex > ciphertext$i.bin
|
||
|
btoa < ciphertext$i.bin > ciphertext$i
|
||
|
rm ciphertext$i.bin
|
||
|
done
|