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. Web Development
  3. ASP.NET
  4. md5 wih salt

md5 wih salt

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminsecurityquestion
4 Posts 2 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.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    hai all, i have implemented md5 in my login page for security purpose. Is this md5 is clienside/serverside? because in html anybody can see the salt value. function am using function md5auth(password) { var seed; seed=null; seed="&<%=Session("salt")%>;"; password.value= MD5(seed+MD5(password.value)); return true; } and on button click event am implemnting the following code txt3.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(str_pwd.ToString().Trim(), "md5") txt2.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((Session("salt") + txt3.Text.Trim.ToLower()), "md5") if txt_pwd.text=txt2.text then response.redirect("Default.aspx") end if i dont understand whether it is both client and server side or only client side.??

    kissy

    A 1 Reply Last reply
    0
    • K Kissy16

      hai all, i have implemented md5 in my login page for security purpose. Is this md5 is clienside/serverside? because in html anybody can see the salt value. function am using function md5auth(password) { var seed; seed=null; seed="&<%=Session("salt")%>;"; password.value= MD5(seed+MD5(password.value)); return true; } and on button click event am implemnting the following code txt3.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(str_pwd.ToString().Trim(), "md5") txt2.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((Session("salt") + txt3.Text.Trim.ToLower()), "md5") if txt_pwd.text=txt2.text then response.redirect("Default.aspx") end if i dont understand whether it is both client and server side or only client side.??

      kissy

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      It is getting the session("salt") from server to client. Say salt = 50 in server, so in client side you see seed = 50 rather than seed = <%session("salt")%>

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      K 1 Reply Last reply
      0
      • A Abhishek Sur

        It is getting the session("salt") from server to client. Say salt = 50 in server, so in client side you see seed = 50 rather than seed = <%session("salt")%>

        Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
        Create .NET Templates

        K Offline
        K Offline
        Kissy16
        wrote on last edited by
        #3

        ya ur correct,in this way is this a serverside encryption or client side encryption.?

        kissy

        A 1 Reply Last reply
        0
        • K Kissy16

          ya ur correct,in this way is this a serverside encryption or client side encryption.?

          kissy

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          Its a client side encryption as MD5 function is just a javascript function where the salt comes from the server. :rose:

          Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
          Create .NET Templates

          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