The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use diagnostics;
use strict;
use warnings;
use Test::More tests => 2;
BEGIN {
    use_ok('Crypt::Anubis')
};

# Set 3, vector# 250:
BEGIN {
    my $key = pack "H32", "fafafafafafafafafafafafafafafafa";
    my $cipher = new Crypt::Anubis $key;
    my $plaintext = pack "H32", "fafafafafafafafafafafafafafafafa";
    my $ciphertext = $cipher->encrypt($plaintext);
    my $answer = unpack "H*", $ciphertext;
    is("3e1abbe354f62e1be5d9bd0599f5b2ed", $answer);
};