From 45367bb0517366f587b69c6f4f605f0fc3bddccb Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 25 Feb 2021 06:51:03 -0500 Subject: [PATCH] cc: add encrypt/decrypt test --- monkey/monkey_island/cc/test_encryptor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monkey/monkey_island/cc/test_encryptor.py b/monkey/monkey_island/cc/test_encryptor.py index 630ae22ee..d147ed3f5 100644 --- a/monkey/monkey_island/cc/test_encryptor.py +++ b/monkey/monkey_island/cc/test_encryptor.py @@ -23,6 +23,12 @@ def test_aes_cbc_decryption(): assert get_encryptor().dec(CYPHERTEXT) == PLAINTEXT +def test_aes_cbc_enc_dec(): + initialize_encryptor(TEST_DATA_DIR) + + assert get_encryptor().dec(get_encryptor().enc(PLAINTEXT)) == PLAINTEXT + + def test_create_new_password_file(tmpdir): initialize_encryptor(tmpdir)