in reply to Re: cbc broken
in thread cbc broken
In fact, the author put this example in the pods:
use Crypt::CBC; $cipher = new Crypt::CBC('my secret key','IDEA'); $ciphertext = $cipher->encrypt("This data is hush hush"); $plaintext = $cipher->decrypt($ciphertext); $cipher->start('encrypting'); open(F,"./BIG_FILE"); while (read(F,$buffer,1024)) { print $cipher->crypt($buffer); } print $cipher->finish;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: cbc broken
by a (Friar) on Feb 12, 2001 at 09:45 UTC |