SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict TegSkywalker's Avatar
    Join Date
    Nov 2001
    Location
    USA
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Encrypt simple form data (PHP 4.1.2) with something other than SSL?

    What's up guys? This may be a silly question to some of you, but I am looking for a simple encryption method for a website of mine. On it we have a Client Login form and want the data like the username and password to be encrypted as they are redirected into their appropriate areas.

    I know theres SSL, but I don't want to go through the hassle with that on a small site. Do you know if there is a way to encrypt it via Blowfish or whatever? I am not sure if PHP 4.1.2 has some special built in encryption methods, but if any of you know of any or how to do it or even have links to setting this up, that would be great. Thanks!

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at the Mcrypt encryption functions:
    http://www.php.net/manual/en/ref.mcrypt.php

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Addict TegSkywalker's Avatar
    Join Date
    Nov 2001
    Location
    USA
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! I was browsing the PHP manual and wasn't 100% sure if MCrypt was the thing to go with, but now I do

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you mean having the data encrypted as it travels between the user and your web site then there is no other easy way than SSL. Using mcrypt would not encrypt any data until it arrived on the server.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  5. #5
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good point Karl

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  6. #6
    SitePoint Addict TegSkywalker's Avatar
    Join Date
    Nov 2001
    Location
    USA
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Karl
    If you mean having the data encrypted as it travels between the user and your web site then there is no other easy way than SSL. Using mcrypt would not encrypt any data until it arrived on the server.
    Ok I will check out OpenSSL and mod_ssl on the OSX Server 10.1.3 machine. I love how easy it is to setup a dev machine with OSX


Bookmarks

Posting Permissions

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