Sorry about the lousy description earlier. Here's the situation:

I have a server that encrypts plaintext based on the request it receives(plaintext, algorithm, keyname etc.). I can add databases configurations to the server, and also choose specific columns in a table to be encrypted by the server. Once I select a table to be encrypted with a given key/algorithm, the server encrypts all the contents of the column and creates a new table on the database with the encrypted data.

Now I want to verify if the encryption was indeed correct. So I extract the encrypted data from the new table (using perl and DBI), and send a decrypt request to the server with all the relevant info(key, algorithm etc.). If the resulting plaintext matches that in the original table, I know that the server's encryption is correct.

So the problem I am facing is - Do I need to transform the data extracted from the encrypted column before sending it to the server for decryption? I hope makes my question clear. Thanks for your help!

linuxfan


In reply to Re^2: interpreting encrypted data stored on DB2 using Perl by linuxfan
in thread interpreting encrypted data stored on DB2 using Perl by linuxfan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.