diff options
author | Samuel Lidén Borell <samuel@kodafritt.se> | 2014-12-09 18:14:52 +0100 |
---|---|---|
committer | Samuel Lidén Borell <samuel@kodafritt.se> | 2014-12-09 20:56:46 +0100 |
commit | 6fc06175a146a93d3a2715e6782d4e26ab90a60f (patch) | |
tree | c7bb5b7e6090833f42ce920cd7ca65cc04e4ae1c /test/encrypt.sh | |
download | aesscan-main.tar.gz aesscan-main.tar.bz2 aesscan-main.zip |
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 |