in reply to Re: Password Encryption
in thread Password Encryption
To wit:
Also, please do not use the fragile DES cipher, as weak crypto is worse than no crypto. Rijndael is much more secure, almost as fast, and equally easy to use.use Crypt::CBC; $cipher = Crypt::CBC->new( { key => 'SomeSecretKeyHere', cipher => 'Rijndael', }); my $source_text = "This data is hush hush"; my $cipher_text = unpack('H*', $cipher->encrypt($source_text)); my $decrypted = $cipher->decrypt(pack('H*', $cipher_text));
Thanks,
/Autrijus/
|
---|