Results 1 to 4 of 4

Thread: Difference between all the encryptions...

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Difference between all the encryptions...

    1) What is the difference between MD5, SHA1...?

    2) What encryption is best?

    3) Can you encrypt an encryption? Like:

    php Code:
    1. <PHP
    2. $password = MD5(SHA1("mypass"));
    3. ?>
    My usual boring signature: Something

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Difference between all the encryptions...

    I recommend this Wikipedia article

    Cryptographic Hash Functions

  3. #3
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Difference between all the encryptions...

    For passwords, never use a straight MD5.

    Always try to move away from using one form of encryption, I mainly use:
    php Code:
    1. md5(base64(md5(base64("STRING"))));

    But that's just me

    As long as you use the same encryption to encrypt as to match, it doesn't matter.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  4. #4
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: Difference between all the encryptions...

    Quote Originally Posted by dclamp
    1) What is the difference between MD5, SHA1...?

    2) What encryption is best?

    3) Can you encrypt an encryption? Like:

    php Code:
    1. <PHP
    2. $password = MD5(SHA1("mypass"));
    3. ?>
    1. see the article pengate posted.

    2. depends on your specifications and requirements.

    3. "Can you encrypt an encryption?" What you mean to ask is "Can I encrypt encrypted data?" The answer is yes. It would be easier to use one encryption key double the size. You will have to do some research, but I am assuming using the same encryption scheme with two different keys might actually weaken the strength of the encryption. See http://weblogs.asp.net/despos/archiv...09/254647.aspx

Posting Permissions

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



Click Here to Expand Forum to Full Width