mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 07:33:55 +01:00
Added test fo password decryption command
This commit is contained in:
@ -9,7 +9,7 @@ install -t /tmp src/libexim-encrypt-dlfunc.so
|
||||
|
||||
LIB=/tmp/libexim-encrypt-dlfunc.so
|
||||
CLEARTEXT="127.88.99.23" # keep short; see above
|
||||
PASSWORD="`openssl rand -base64 32`"
|
||||
PASSWORD="$(openssl rand -base64 32)"
|
||||
|
||||
CIPHERTEXT=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_encrypt_password}{${PASSWORD}}{${CLEARTEXT}}}")
|
||||
DECRYPTED=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_decrypt_password}{${PASSWORD}}{${CIPHERTEXT}}}")
|
||||
|
||||
Reference in New Issue
Block a user