simpler version for incryption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mankolele
    New Member
    • Sep 2006
    • 63

    simpler version for incryption

    Since MD5 is not recommended which other can be used.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Try SHA1, it is better then MD5.



    Ronald :cool:

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Originally posted by ronverdonk
      Try SHA1, it is better then MD5.
      If you read the MySQL documentation it says that SHA1 is not much(any) better than MD5 for security

      Comment

      • tbb9216
        New Member
        • Sep 2006
        • 16

        #4
        AES is the new defacto standard. it is in both PHP and mysql by default, i find the mysql method a LOT easier to use. its the same enc type that the US govt uses, there are only 2 HYPOTHETICAL breaks to it in existence. in php it is part of the mcrypt library, and it goes as rhijndahl or something like that, after the 2 people who created it, and make sure to use the 128bit version, as that is the AES version.

        in mysql its just:
        Code:
        INSERT INTO table
        (field)
        VALUES
        (AES_ENCRYPT('value', 'secret_key'));
        and to retrieve it (warning, you MUST have the same key you stored it with):
        Code:
        SELECT 
        AES_DECRYPT('field', 'secret_key')
        FROM table
        simple as that.

        -tim

        Comment

        Working...