String Encoding Suggestions

Discussion in 'Security' started by crath, Jul 3, 2009.

  1. #1
    I am going to be storing some sensitive data in a mysql database. I already have the form on a standalone page with an SSL connection to insert it into the database. I would like to beef up the security a bit and encode the data while its sitting in the database. I am using php. Any suggestions?

    I was thinking about using base64, but im sure there are better ways todo it.

    Thanks for any tips!
     
    crath, Jul 3, 2009 IP
  2. baonhi41

    baonhi41 Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Base64 is insecure. It is easy to decode.
    <?php echo(base64_decode('BASE64_STRING')); ?>

    If password use MD5. If text don't need encode.
     
    baonhi41, Jul 7, 2009 IP
  3. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #3
    like i said, its sensitive data that needs to be encrypted. but it obviously cant be encrypted so hard that it cannot be decrypted.
     
    crath, Jul 7, 2009 IP