in reply to Re^2: How to read encrypted data from informix database into a single variable
in thread How to read encrypted data from informix database into a single variable

You generate the output file yourself, so I'd make sure to only write 32bytes per line — while simultaneously avoiding writing the two mystery bytes — and just read them back in that way. no?
while(<$input>) { chomp; my $var = pack("H*", $_); die "holy smokes, my hex-dump file is bad" unless length $var == 3 +2; }

-Paul

  • Comment on Re^3: How to read encrypted data from informix database into a single variable
  • Download Code

Replies are listed 'Best First'.
Re^4: How to read encrypted data from informix database into a single variable
by Dev (Initiate) on May 16, 2007 at 09:07 UTC
    Analysing hex dump, was good idea. It simplified lot of things. I took, unload of encrypted data in an file. And then from byte patterns and using simple read() and seek(), i was able to extract the actual encrypted data bytes as i intended to do. Thank you for your inputs :) . have a nice day