3 use Test::More tests => 1;
7 t::lib::Mocks::mock_config('encryption_key', 'my secret passphrase');
9 my $string = 'a string to encrypt';
11 my $crypt = Koha::Encryption->new;
12 my $encrypted_string = $crypt->encrypt_hex($string);
13 is( $crypt->decrypt_hex($encrypted_string), $string, 'Decrypted to original text' );