diff options
Diffstat (limited to 'test/encrypt.sh')
-rwxr-xr-x | test/encrypt.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/encrypt.sh b/test/encrypt.sh new file mode 100755 index 0000000..1c8753a --- /dev/null +++ b/test/encrypt.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +key=4B4559030405060708090A0B0C0D0E0F + +iv=495612131415161718191A1B1C1D1E1F +num=1 + +openssl enc -aes-128-cbc -e -in plaintext-$num.txt -out encrypted-txt-$num.bin -iv $iv -K $key +echo $iv | xxd -ps -r > encrypted-txt-with-iv-$num.bin +cat encrypted-txt-$num.bin >> encrypted-txt-with-iv-$num.bin |