in reply to ANNOUNCE Crypt::OpenPGP

Is there a tutorial or examples on the way, too?

From the docs, it looks like it only works on data saved in named files, not streams that I can feed as I go. Is that correct?

I plan to try it shortly, or at least this weekend (after I finish another module).

This is very exciting! I've seen how easy it is to do RC4 symetric encryption in Perl, but the idea of doing public key stuff was daunting.

—John

Replies are listed 'Best First'.
Re: Re: ANNOUNCE Crypt::OpenPGP
by btrott (Parson) on Aug 07, 2001 at 03:04 UTC
    It works on scalar data; the data doesn't have to be in files. Look at the 'Data' parameter to encrypt and sign, in particular; that lets you specify the data to be encrypted/signed as a scalar string, rather than as a filename.

    And all of the methods return data as a scalar; they don't write data to a file.

    Furthermore, you can always go under the hood and use the lower-level interface in the other modules if you wish. I will add some "SEE ALSO" sections to the main Crypt::OpenPGP docs, but the other classes are all documented (basically :), so they should be useable on their own.

    BTW: As for tutorial and examples: at the moment the best I can offer for examples is the test suite and the SYNOPSIS. Examples will come in the future.

      OK, that's good.

      When I looked at your site, the docs had all empty sections except a rather long overview. I saw parameters with names like file=> and it looked like you were passing filenames.