Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Please advise me to set keys in encryption
  • Comment on How to encrypt use(Crypt::Blowfish.pm) encryp tech....???

Replies are listed 'Best First'.
Re: How to encrypt use(Crypt::Blowfish.pm) encryp tech....???
by arhuman (Vicar) on Mar 22, 2001 at 15:17 UTC
    there are several modules :

    Crypt::Blowfish Dave Paris
    my $cipher = new Crypt::Blowfish $key; my $ciphertext = $cipher->encrypt($plaintext);
    Crypt::Blowfish_PP Matthew Byng-Maddick
    $blowfish=new Crypt::Blowfish_PP($key);
    Now as a general rule your key, should be as random as possible...

    UPDATE :
    It's not really related to your question but you should give a try to RIJNDAEL the new AES...
    Several modules exists, and it's a really good algo.