fionbarr has asked for the wisdom of the Perl Monks concerning the following question:
but I can't store the encrypted data in a string. help pleaseuse Crypt::Rijndael_PP ':all'; $key = "1234567890ABCDEF" x 4; # 256bit hex number $cipher = Crypt::Rijndael_PP->new( pack('H*', $key), MODE_CBC ); $c_txt = $cipher->encrypt($data); $p_txt = $cipher->decrypt($c_txt); print "--> encoded text = $c_txt\n"; print "--> decoded text = $p_txt\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: usage of Crypt::Rijndael_PP
by choroba (Cardinal) on Aug 01, 2016 at 16:04 UTC | |
by fionbarr (Friar) on Aug 01, 2016 at 16:11 UTC | |
by stevieb (Canon) on Aug 01, 2016 at 16:19 UTC | |
by fionbarr (Friar) on Aug 01, 2016 at 16:38 UTC |