perlmdl has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
So here is the challenge, i have to integrate with a partner who has shared the working example on: http://aes.online-domain-tools.com/
Input text - set as HEX:
3132333435363738393031323334353632373832343634303031305468697320697320612074657374206D657373616765FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFunction: AES
Mode: CBC
Key set as HEX: 01F0E0D0C0B0A090807060504030201001F0E0D0C0B0A0908070605040302010
IV: 8006e3b6dbdb4865e079d0543c6007bc
Certain values changed for obvious reasons.
Challenge :
my $cipher = Crypt::CBC->new( -cipher => 'Crypt::Cipher::AES', -key => $key, -iv => $iv, -padding => 'none', -header => 'none', -keylength => '256' , -literal_key => 1 );
This is naturally failing due to IV size (not sure if it is related to hex values, etc. Any insight as to how to solve?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl aes-256-cbc
by haukex (Archbishop) on May 14, 2020 at 12:27 UTC | |
by perlmdl (Initiate) on May 14, 2020 at 13:39 UTC |