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

Dear Monk brethren,

I have a dilema that I hope someone can provide divine guidance to. I am in a mixed environment of .NET and Perl in which a connection manager rights Rijndael encrypted connection strings to the windows registry, all connection information must be entered through this connection manager as dictated by security. What I need to do is extract this connection string information for my Perl scripts in order to conduct log parsing and entry into a database.

I've looked at the CPAN module Data::Encrypt but I'm not sure that it will provide me the necessary algorithm to decrypt the Rijndael encrypted registry keys.

Does any one have any ideas or have I enter the dark realm of .NET specific encryption algorithms. All prayers welcome.
  • Comment on Reading a Rijndael encrypted connection string from a Windows registry

Replies are listed 'Best First'.
Re: Reading a Rijndael encrypted connection string from a Windows registry
by hardburn (Abbot) on Nov 25, 2003 at 17:39 UTC

    I couldn't find a "Data::Encrypt" module, but there is a Data::Encrypted module. That one works with RSA, which is for public-key crypto. Not what you want.

    There is a Crypt::Rijndael module. You will also need to know if the data was encrypted in a specific cipher mode (probably CBC mode, if it was), in which case you'll need a module that can handle that mode, like Crypt::CBC.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated