Hi PerlMonks

I'll explain the program I have developed and I'd like to know your suggestions/thoughts on the security of it ..

It is an ordering script which will handle cc data and process cards through a merchant gateway - because it will handle recurring transactions these cc numbers must be encrypted and stored in the database. Now what I think is best is that the data is encrypted with an encryption string defined in the script and then the admin approves the new customer and assigns it a new encryption key and that will be used when running it in future (and will not be stored on the server).

Now, my concern is with the initial encryption as the encryption method will need to be in the script so it can be decrypted - should I somehow hide the source of the encryption/decryption file? I did a search here and discovered Bleach, but it appears that the source can be revived from that. It needs to be portable also.. Would love people's opinions on this, I apreciate any feedback. Thanks

In reply to Strong Encryption by Anonymous Monk

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.