Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. md5 encription

md5 encription

Scheduled Pinned Locked Moved Java
javasysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Trupti001
    wrote on last edited by
    #1

    Hi, I have a registration form(in jsp) with a password field. I want to convert that password to md5 in client side before storing it to data base.when retriving that password that md5 password will travel in the network and decript to its original one in the client side jsp page.ALL THE ENCRIPTION AND DECRIPTION WILL BE DONE IN CLIENT SIDE JSP PAGES ONLY.and md5 password will travel in the network

    L Richard DeemingR 2 Replies Last reply
    0
    • T Trupti001

      Hi, I have a registration form(in jsp) with a password field. I want to convert that password to md5 in client side before storing it to data base.when retriving that password that md5 password will travel in the network and decript to its original one in the client side jsp page.ALL THE ENCRIPTION AND DECRIPTION WILL BE DONE IN CLIENT SIDE JSP PAGES ONLY.and md5 password will travel in the network

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      MD5 is deprecated these days in favour of more secure algorithms. See Secure Password Authentication Explained Simply[^] for further details.

      1 Reply Last reply
      0
      • T Trupti001

        Hi, I have a registration form(in jsp) with a password field. I want to convert that password to md5 in client side before storing it to data base.when retriving that password that md5 password will travel in the network and decript to its original one in the client side jsp page.ALL THE ENCRIPTION AND DECRIPTION WILL BE DONE IN CLIENT SIDE JSP PAGES ONLY.and md5 password will travel in the network

        Richard DeemingR Online
        Richard DeemingR Online
        Richard Deeming
        wrote on last edited by
        #3

        Not only is MD5 deprecated in favour of more secure algorithms, it's a hashing algorithm, not an encryption algorithm. There is no "password", and you cannot "decrypt" the hashed value. But that's a good thing, because you should never be able to decrypt the user's password. To validate that the user has entered the correct password, you just apply exactly the same hashing algorithm to the entered password, and compare the result to the stored hash value. Salted Password Hashing - Doing it Right[^] As for doing the hashing on the client side, that's a very bad idea. Anyone who can sniff the network traffic doesn't need to know the original password to impersonate the user; they can just submit the hashed password instead. Set up an SSL certificate on your site, and ensure that your login page is only ever served over HTTPS. That way, the infrastructure will protect the password in-flight, and you can do your salted password hashing on the server, where it belongs.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups