- or download this
sub encrypt {
print "enter key: ";
...
$data = $file;
$c_txt = rijndael_encrypt($key, MODE_CBC, $data, 256, 128);
$file->print($c_txt);}
- or download this
sub decrypt {
print "enter key: ";
...
$c_txt = $file;
$p_txt = rijndael_decrypt($key, MODE_CBC, $c_txt, 256, 128);
$file->print($p_txt);}
- or download this
$file =~ s/\r$//;
and
$file =~ s/\n$//;