Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 8d4a9bf78c4e893087bb2246cca76a9b > files > 200

nss-doc-3.45.0-1.mga7.noarch.rpm

#!/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