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. password display in view source

password display in view source

Scheduled Pinned Locked Moved ASP.NET
6 Posts 4 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
    keyur satyadev
    wrote on last edited by
    #1

    Hi i have on profile page and in that page the password of login user will display on page load. when i view page source then the value of the actual password is shown. so i need to make solution of this. please note that if user enter new password here and click on save then password will be changed. so is their any way so that the password will not appear in viewsource and will shown to user. please keep in mind that he can change password from here too.so it not possible to show hashcode or etc.

    Regards Keyur Satyadev

    C A S 3 Replies Last reply
    0
    • K keyur satyadev

      Hi i have on profile page and in that page the password of login user will display on page load. when i view page source then the value of the actual password is shown. so i need to make solution of this. please note that if user enter new password here and click on save then password will be changed. so is their any way so that the password will not appear in viewsource and will shown to user. please keep in mind that he can change password from here too.so it not possible to show hashcode or etc.

      Regards Keyur Satyadev

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your code is really, really crap. I can't percieve of any reason for the password to be sent to the client. Good code doesn't even load it into memory, it just asks the database if it matches. Reasonable code would have it stored in the web config or similar. I can't even imagine what the hell it is you are doing.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      K 1 Reply Last reply
      0
      • K keyur satyadev

        Hi i have on profile page and in that page the password of login user will display on page load. when i view page source then the value of the actual password is shown. so i need to make solution of this. please note that if user enter new password here and click on save then password will be changed. so is their any way so that the password will not appear in viewsource and will shown to user. please keep in mind that he can change password from here too.so it not possible to show hashcode or etc.

        Regards Keyur Satyadev

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

        well, if you want to send password in textbox, it will come with HTML. Why do you require to show current password to the user, just when the user is logged in, you can let the user change his password, and send a notification to his mailbox. We dont have encryption with javascript, if you still want, you can find some help from here http://www.hanewin.net/encrypt/ Other than that if you dont want to show the password directly to the user, why dont you do encryption to the server. Or why do you require at all to send the password to the client? :confused::confused:

        Abhishek Sur My Latest Articles Working with Excel using MDAC
        Basics on LINQ and Lambda Expressions
        Create .NET Templates

        1 Reply Last reply
        0
        • K keyur satyadev

          Hi i have on profile page and in that page the password of login user will display on page load. when i view page source then the value of the actual password is shown. so i need to make solution of this. please note that if user enter new password here and click on save then password will be changed. so is their any way so that the password will not appear in viewsource and will shown to user. please keep in mind that he can change password from here too.so it not possible to show hashcode or etc.

          Regards Keyur Satyadev

          S Offline
          S Offline
          sajjy
          wrote on last edited by
          #4

          hey i can`t think how you made your page that works like this !!! :wtf: you know , there should not be any thing at client side about passwords ! make it in a way that don`t send any pass to cilents :zzz:

          K 1 Reply Last reply
          0
          • C Christian Graus

            Your code is really, really crap. I can't percieve of any reason for the password to be sent to the client. Good code doesn't even load it into memory, it just asks the database if it matches. Reasonable code would have it stored in the web config or similar. I can't even imagine what the hell it is you are doing.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            K Offline
            K Offline
            keyur satyadev
            wrote on last edited by
            #5

            i know what are you saying. but the requirements from client's is to show the password when user login and come to page. so i need solution. i know the password will not good to show the client. but asap their is some specification by client i cann't do anything. hope u understand.

            Regards Keyur Satyadev

            1 Reply Last reply
            0
            • S sajjy

              hey i can`t think how you made your page that works like this !!! :wtf: you know , there should not be any thing at client side about passwords ! make it in a way that don`t send any pass to cilents :zzz:

              K Offline
              K Offline
              keyur satyadev
              wrote on last edited by
              #6

              sajjy wrote: hey i can`t think how you made your page that works like this !!! WTF this is requirement from client i cann't do anything. :( sajjy wrote: you know , there should not be any thing at client side about passwords ! i know but i have no rights to choose client's design or client's scope. :rolleyes:

              Regards Keyur Satyadev

              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