SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: MD5 question

Hybrid View

  1. #1
    SitePoint Zealot contactnaveen's Avatar
    Join Date
    Oct 2004
    Location
    India
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MD5 question

    Hello folks,

    Im using MD5 algorithm to encrypt the password. Is there any method to decrypt it in javascript??

    Any pointers would be helpful

    Thanks,
    Naveen.

  2. #2
    SitePoint Enthusiast Azmeen's Avatar
    Join Date
    Apr 2007
    Location
    Johor Bahru, Johor, Malaysia
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    MD5 is a one-way hash. Meaning you can only convert it from a phrase to it's hash and NOT vice-versa.

    How you verify if a user-entered phrase matches the original password is not via decryption, but comparing the generated hash for the user-inputed value.
    I can help with Linux, Apache, MySQL and PHP stuff at most times.
    I may be able to assist in other general IT issues. Try me
    Web Sites I Run:
    HTNet | Welley Corporation | blings.info

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The whole idea of these hashing algorithms is that the password is never stored anywhere in plaintext and the hashed version cannot be used to authenticate. Md5 works one way only, as Azmeen pointed out. There aren't many two way algorithms out there, and the few available do little but obfuscate the data (shift cyphers, for example). The thing about md5 is that the md5 hash value will always be the same so you can calculate the hash when data is first entered and compare it against hashed user input later to verify matches.

  4. #4
    SitePoint Zealot contactnaveen's Avatar
    Join Date
    Oct 2004
    Location
    India
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Guyz for the replies.

    Naveen. V


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
  •