Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Encryption algorithms in Perl 5.8?

by lrep2010 (Initiate)
on Jan 18, 2010 at 20:43 UTC ( #818040=perlquestion: print w/ replies, xml ) Need Help??
lrep2010 has asked for the wisdom of the Perl Monks concerning the following question:

Hell monks, I need to know specifically for Perl 5.8, what encryption algorithms are implemented at run time and are included in the following modules: XML, List, and IO. (only from Perl 5.8 core distribution, excluding 3rd party and add-on modules) I'm a complete newbie to the Perl world but I deal with a lot of cryptography. Tried CPAN and searched around, no documentation seem to address my quest directly. Does anyone have the specific information or can point me to a direct resource regarding the above question? Much appreciated!

Comment on Encryption algorithms in Perl 5.8?
Re: Encryption algorithms in Perl 5.8?
by jettero (Monsignor) on Jan 18, 2010 at 20:47 UTC
    Perl probably doesn't ship with many choices, but there are tons available: Crypt:: (just to get you started).

    -Paul

      Thank you Paul. but Crypt:: package and its modules within are not shipped with core Perl, correct? In fact, the only encryption of any sort that I found and is distributed by Perl itself is just MD5, I'm afraid.

        MD5 is not an encryption algorithm.

        Modules in the core need to be supported practically forever. It's definitely not a good place to put encryption modules, since those become obsolete fairly fast.

        So what if it's not in the core.

        Yeah, Perl doesn't come with very much stuff. It may even come with too much stuff. It's intended to be used with The CPAN, so it's a little silly to try to measure it without that awesome resource.

        -Paul

Re: Encryption algorithms in Perl 5.8?
by tirwhan (Abbot) on Jan 19, 2010 at 12:42 UTC

    For completely unbreakable encryption with core Perl, use the binary XOR operator ("^") and a one-time pad. If an OTP is unsuitable for your purposes (and it almost certainly is, because there are few practical cases in which an OTP can be used sensibly and correctly), use one of the Crypt modules, as suggested by others above. Don't be afraid of CPAN modules, they are a part of Perl, even if they are usually not distributed together with the binary.


    All dogma is stupid.
      Thanks all monks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://818040]
Approved by jettero
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-10-02 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls