tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mktst.sh (506B)


      1 #!/bin/sh
      2 for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
      3 do
      4    file="test$i.txt"
      5    grep K= $file | sed -e 's;K=;;' | hex > key$i
      6    grep IV=  $file | sed -e 's;IV=;;' | hex > iv$i
      7    grep "C="  $file | sed -e 's;C=;;' | hex > ciphertext$i.bin
      8    grep "P="  $file | sed -e 's;P=;;' | hex  > plaintext$i
      9    grep "A="  $file | sed -e 's;A=;;' | hex  > aad$i
     10    grep "T="  $file | sed -e 's;T=;;' | hex  >> ciphertext$i.bin
     11    btoa < ciphertext$i.bin > ciphertext$i
     12    rm ciphertext$i.bin
     13 done