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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Read (Decrypt) REG_BINARY (from registry)

Replies are listed 'Best First'.
Re: Read (Decrypt) REG_BINARY (from registry)
by robby_dobby (Hermit) on Nov 14, 2016 at 10:34 UTC
    Hi Anonymonk,

    I'm not sure what you're trying to do here. Do you have some sample code/data to show? I assume you're referring to Windows registry files and manipulating/reading them. In that case, do you see any modules on CPAN? How about Win32::TieRegistry or Parse::Win32Registry?

    Please post better questions so we can help better. :-)

Re: Read (Decrypt) REG_BINARY (from registry) (unpack)
by tye (Sage) on Nov 14, 2016 at 19:46 UTC

    REG_BINARY values are usually not encrypted. The easiest way I can think to get a text string that describes a REG_BINARY value would be unpack, which could give you, for example, a hexadecimal dump via: $hex = unpack "H*", $binary;

    Of course, I am assuming that you already have code that gets the REG_BINARY value into $binary. If not, I'd use Win32::TieRegistry (but maybe I'm biased).

    - tye