Re: Data encryption before storage

From: Georg Gell (security_at_1-stop-solutions.at)
Date: 07/04/03

  • Next message: Tim Greer: "Re: Ten least secure programs"
    Date: Fri, 04 Jul 2003 23:09:17 +0200
    To: Chris Lloyd <chris@klearmedia.com>
    
    

    Hi Chris,

    it depends where you want to decrypt the data.
    The problem with php is that nearly everybody can read the passwords
    stored in the php file.
    To be save you must use a public/private key infrastructure. Then your
    public key is saved on the server
    and with it your data is encrypted.
    The safest way to decrypt the data is to download it encrypted and to
    decrypt it locally with your
    private key.
    If you need to decrypt it on the server you can upload your private key
    for each transaction with a form.
    But it is not really safe because then your private key will be visible
    in /tmp for some time.

    Georg

    Chris Lloyd wrote:

    >Hello Guru's
    >
    >I was wondering if maybe someone could help me out with this issue.
    >
    >I am using php, ssl, and mysql. I need to be able to collect info from a
    >form on https and encrypt the data before storing into mysql. I also need
    >to be able to decrypt the data when we remove the data from mysql. I know
    >there are plenty of ways to do this, but I'm not sure of the best, most
    >secure way. Ware on a shared server at host rocket, so I'm sure that dont
    >help. But there must be a solution to get "safe" 2 way
    >encryption/decryption using the php,ssl,mysql.
    >
    >
    >I would greatly appreciate any input, pointer, suggestions.
    >
    >Chris
    >
    >---------------------------------------------------------------------------
    >Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts!
    >The Gartner Group just put Neoteris in the top of its Magic Quadrant,
    >while InStat has confirmed Neoteris as the leader in marketshare.
    >
    >Find out why, and see how you can get plug-n-play secure remote access in
    >about an hour, with no client, server changes, or ongoing maintenance.
    >
    >Visit us at: http://www.neoteris.com/promos/sf-6-9.htm
    >----------------------------------------------------------------------------
    >
    >
    >
    >
    >

    ---------------------------------------------------------------------------
    Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts!
    The Gartner Group just put Neoteris in the top of its Magic Quadrant,
    while InStat has confirmed Neoteris as the leader in marketshare.
         
    Find out why, and see how you can get plug-n-play secure remote access in
    about an hour, with no client, server changes, or ongoing maintenance.
              
    Visit us at: http://www.neoteris.com/promos/sf-6-9.htm
    ----------------------------------------------------------------------------


  • Next message: Tim Greer: "Re: Ten least secure programs"

    Relevant Pages

    • how to decrypt private key for ssl?
      ... have to enter a pass phrase ever. ... always have to enter the pass phrase upon start, or decrypt the private ... however, i wonder, if someone has access to my decrypted private key ... this server is meant to be up 24/7 and could possibly be restarted when ...
      (RedHat)
    • Re: SSL questions
      ... >>hold all the secret required to decrypt an SSL conversation? ... agency in Australia approached me with the RSA private key from the ... server and packet logs for connections. ...
      (sci.crypt)
    • Re: Automating Security with Policies(HandOnLabs 34)
      ... The client doesnt need the servers private key. ... The client encrypts with teh servers *public* key. ... Only the server can decrypt ... Likewise on the server side the server encrypts ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: CryptAPI(encryption/decryption)
      ... It seems like you're missing the Base64 decode step when trying to decrypt ... I misspelled the Private Key as Primary Key. ... Is there any variation in the encryption format in openssl compared to ... "Dylan DSilva " wrote: ...
      (microsoft.public.pocketpc.developer)
    • [OT] Re: Basic question about Public Private Key Pairs
      ... > and private keys allow me to decrypt, but vice versa is not possible (or ... a public key and a corresponding private key. ... You can encrypt something with each key; ...
      (microsoft.public.dotnet.security)