Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Encryption puzzle

    I don't know much about encryption, so I've been banging my head against this
    for a few days now. Here's the situation: I'm working on an online application,
    from which I'm collecting and storing sensitive data (social security numbers).
    I want to encrypt that data to keep it safe. However, that data also needs to
    be editable by the user who supplied it. Easy, right? I just use the
    applicant's password as the key for encrypting the data in the database (MySQL.
    I'm running RedHat and CF MX 6.1). It's only editable when the user supplies
    the password, which is used to decrypt the data while the user is working on
    it. That makes sense to me. But here's the thing. I only want the user to be
    able to edit until a certain point in the process when the finished application
    is submitted, at which time the data needs to be 'locked.' At that point, I
    need the data to be editable by an administrator, but NOT the original user. In
    other words, I need to be able to automate the decryption of the user's data
    and then re-encrypt it so that it's no longer available to the user. I don't
    want to store any keys on the server, obviously. So how do I do this? It seems
    like I can use the password during the user's log-in session to decrypt the
    data at the point they click the 'I'm completely done and now the data is all
    yours' button. Even if that's right, how do I then automatically re-encrypt the
    data using an administrative key without having that key stored on the server?
    The question reveals my lack of understanding here, I'm sure, but even if I'm
    thinking about this all wrong, does anyone have suggestions on how it *can* be
    done? Thanks, P

    chootoi2 Guest

  2. Similar Questions and Discussions

    1. FTP Connection Puzzle
      I visited 2 sites today (Goldthorpe and Mapplewell) to try and establish why Contribute will not function as we expect it to at these sites. The...
    2. Design Puzzle
      A general .NET releated design question: Short Verssion: What is the best way to have a data access layer target a different database at...
    3. puzzle
      8 7 2 9 6 1 8 3 4 2 4 6 2 ? ? 5 who can guess two numbers?
    4. 8-puzzle in lingo using A*
      I am working on making an 8-puzzle in lingo that the computer will solve using A*, and would like a tutorial or reference if anyone knows where I...
    5. An Interesting Puzzle...
      Check out http://www.theindianmaiden.com/lost/ripper.asp I am sure that it is an easy problem but can anybody tell me why I cant get rid/detect...
  3. #2

    Default Re: Encryption puzzle

    I've written an app that does store the keys, BUT they're hidden within a LARGE
    string of numbers. A fake seed so to speak. So if your db was stolen it would
    be pretty hard to figure which set of numbers you used to get the seed. Most
    crackers would think you used the whole string and probably move on to a easier
    target or waste their time figuring out which numbers were used. The thing that
    makes this pretty secure is each record has a different seed and crack one
    record would be amazing, but to crack them all is probably require pentagon
    level skills. I'd give you the source code, but then the method wouldn't be
    secure. I've probably said to much already, but wts SSN's should be protected
    at all costs. I'm really not sure how the encryptoin gurus would look at this
    since most frown on obfuscation, but at this point you need to secure that
    content asap. Good Luck in any event.

    Nuclear.Kitten Guest

  4. #3

    Default Re: Encryption puzzle

    Use a public/private encryption. When a user clicks that they are done, encrypt
    the SSN with your public key. Than you can decrypt it later with your private
    key. You can key your key offline in a seperate safe location. Check out pgp or
    equivalent programs.

    Mike Greider Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139