rupesh has asked for the wisdom of the Perl Monks concerning the following question:
Isn't $packed_stuff be equal to $ciphertext?#!/usr/bin/perl use strict; use Crypt::CBC; my $cipher = Crypt::CBC->new( -key => 'test', -salt => 1, ); my $ciphertext = $cipher->encrypt("encrypt_me"); # my $plaintext = $cipher->decrypt($ciphertext); $print_this=unpack("H16", $ciphertext); #so far, so good $packed_stuff=pack("H16", $print_this); print $packed_stuff."\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can't pack "unpacked" stuff...
by jasonk (Parson) on Jul 18, 2005 at 13:50 UTC | |
Re: Can't pack "unpacked" stuff...
by socketdave (Curate) on Jul 18, 2005 at 14:02 UTC | |
Re: Can't pack "unpacked" stuff...
by mkirank (Chaplain) on Jul 19, 2005 at 08:17 UTC |