Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Extracting encrypted in a table on DB2 with Perl

Reply
Thread Tools

Extracting encrypted in a table on DB2 with Perl

 
 
rparimi@gmail.com
Guest
Posts: n/a
 
      12-10-2004
Hi,

A table on my DB2 database has encrypted data, and I wish to extract
it. I have written the DBI code to connect to the database, and read
all values from the column I want. However, I am not sure if the data
that the perl script retrieves from the database is the "correct"
encrypted data. I know that DB2 has its own format for storing
encrypted data, but do not know how to process this data (using a pack
or unpack?)


When I run a select on the table from a db2 prompt, a row in the table
looks like as:

1 x'D6B6D2EE0C57ADF2'

What transformation do I need to apply to the binary data stored in a
perl scalar variable to make sure that I am working with the right
encrypted data?

Thanks a lot..

 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      12-10-2004
<> wrote in comp.lang.perl.misc:
> Hi,
>
> A table on my DB2 database has encrypted data, and I wish to extract
> it. I have written the DBI code to connect to the database, and read
> all values from the column I want. However, I am not sure if the data
> that the perl script retrieves from the database is the "correct"
> encrypted data. I know that DB2 has its own format for storing
> encrypted data, but do not know how to process this data (using a pack
> or unpack?)
>
>
> When I run a select on the table from a db2 prompt, a row in the table
> looks like as:
>
> 1 x'D6B6D2EE0C57ADF2'
>
> What transformation do I need to apply to the binary data stored in a
> perl scalar variable to make sure that I am working with the right
> encrypted data?


What makes you think Perl programmers are particularly qualified to
answer this? The fact that you are using Perl to connect to the
Database is not relevant.

Anno
 
Reply With Quote
 
 
 
 
Gregory Toomey
Guest
Posts: n/a
 
      12-10-2004
wrote:

> Hi,
>
> A table on my DB2 database has encrypted data, and I wish to extract
> it. I have written the DBI code to connect to the database, and read
> all values from the column I want. However, I am not sure if the data
> that the perl script retrieves from the database is the "correct"
> encrypted data. I know that DB2 has its own format for storing
> encrypted data, but do not know how to process this data (using a pack
> or unpack?)
>
>
> When I run a select on the table from a db2 prompt, a row in the table
> looks like as:
>
> 1 x'D6B6D2EE0C57ADF2'
>
> What transformation do I need to apply to the binary data stored in a
> perl scalar variable to make sure that I am working with the right
> encrypted data?
>
> Thanks a lot..


There are hundreds of encryption algorithms. How are we supposed to work out
what you used?

Perl has modules for common symmetric encryption like DES & RC4.

gtoomey
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DB2 under Windows XP - "Missing DB2 Libraries or headers" daf@jaade.com Ruby 0 04-26-2006 03:08 PM
Installing ruby-db2-0.4 for DB2 gives SQLConnect() errors. Dinesh Ruby 0 04-03-2006 04:20 AM
Hibernate 3.1 and db2 connecting using com.ibm.db2.jcc.DB2Driver crawstevenford@gmail.com Java 0 02-19-2006 08:20 PM
ID of last insert from DB2 table mark.dundon@gmail.com Java 4 02-06-2005 06:43 PM
Problem storing dynamically created PDF file in a db2 table as a blob Tony Java 1 08-01-2004 11:30 PM



Advertisments