diff options
Diffstat (limited to 'openssl/tests/encryption.testscript')
-rw-r--r-- | openssl/tests/encryption.testscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openssl/tests/encryption.testscript b/openssl/tests/encryption.testscript new file mode 100644 index 0000000..6326858 --- /dev/null +++ b/openssl/tests/encryption.testscript @@ -0,0 +1,9 @@ +# file : tests/encryption.testscript +# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +enc = $* aes-256-cbc -e -salt -base64 -md sha256 -pass pass:123 -pbkdf2 +dec = $* aes-256-cbc -d -salt -base64 -md sha256 -pass pass:123 -pbkdf2 + +$enc <'ABC' | $dec >'ABC' : no-zlib +$enc -z <'ABC' | $dec -z >'ABC' : zlib |