in reply to Perl module for language portable encryption

Pretty much anything under the Crypt:: namespace will work. In fact, most of them are just Perl interfaces on top of a C library. As long as you use the same algorithm (AES is a good choice) and the same encryption mode (use CBC unless you have a specific reason not to), there's no reason you can't decrypt on the C side of things.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

  • Comment on Re: Perl module for language portable encryption

Replies are listed 'Best First'.
Re^2: Perl module for language portable encryption
by kosun (Acolyte) on Apr 21, 2005 at 22:46 UTC
    thanks!

    Hmm I'd love to use Crypt::CBC, or Crypt::* whatever, but looking at the source code, so far I don't really see them utilizing any of the underlying C functions, looks perl impelmented.

    I'll keep digging through some of these, I may be missing it.

      An algorithm is language agnostic. That is to say that any encryption algorithm should operate the same regardless of wheter it was implemented in Perl, C, COBOL, Fortran, Lisp, etc... So, let's say that you choose DES. There's a DES module for Perl, and I'm sure with a bit of searching, you can find a C implementation of it. You can write your respective programs around those two libraries; your Perl program around the Perl module, and the C program around the C library. Easy, peasy, Japanese-y.

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come