use Crypt::PBE qw(:jce);
my $pbe = PBEWithMD5AndDES('mypassword');
my $encrypted = $pbe->encrypt('secret'); # Base64 encrypted data
print $pbe->decrypt($encrypted);
To install Crypt::PBE
distribution, run the following commands:
perl Makefile.PL
make
make test
make install
- Copyright 2020-2023 © Giuseppe Di Terlizzi