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:
3132333435363738393031323334353632373832343634303031305468697320697320612074657374206D657373616765FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Function: 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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.