# 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