use Crypt::CipherSaber; my $cs = Crypt::CipherSaber->new('Your secret key here'); open(IN, 'mysqldump.sql') or die "Can't open infile: $!"; open(OUT, '>mysqldump.cs1') or die "Can't open outfile: $!"; # depending on your platform binmode(INFILE); binmode(OUTFILE); $cs->fh_crypt(\*INFILE, \*OUTFILE, 1);