in reply to Crypt::CBC help!
if ($mode == 0) { open(INFILE, "<$inFile") || die "Error opening source file for inp +ut! \n"; open(CRYPTFILE, ">$cryptFile") || die "Error opening crypt file fo +r output! \n"; $cipher->start('encrypting'); while (<INFILE>) { print CRYPTFILE $cipher->crypt($_); } print CRYPTFILE $cipher->finish; close INFILE; close CRYPTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Crypt::CBC help!
by Anonymous Monk on Mar 13, 2002 at 15:40 UTC |