You must Sign In to post a response.
  • Category: .NET

    How to store the Password field in ***** format?

    Dear honors,

    I've a table it contains User name and Password fields. In that how can we store the Password field in ***** format?... and also how to bind the password field in ***** format in Gridview / Listview...


    Thanks in Advance...
  • #619222
    hi,
    you can store the password as binary or you can store as encoded format to hide the password.

    when you bind with gridview just replace all those passwords as * in the databound method of gridview.

    If it helps you then Rate this.

    Best Regards,
    Manoranjan Sahoo
    http://www.dotnetsquare.com
    Blog: http://blog.msahoo.net

  • #619230
    Sheik,
    Visual Studio is having Text modes property for textboxes like password,multiline...So check the properties of the textbox by right clicking on the textbox and select password as your type from the dropdown.In the gridview add a template column as a text box and repeat the above to that text box in the gridview.I hope this would help to do move forward

  • #619231
    Hi

    You can use Encrypt your data before Store in database and Decrypt your data after retrieve data from database.

    you can use below algorithm use encrypt and decrypt your password.

    DES
    RC2
    Rijndeal
    TripleDes

    Thanks

    "IF YOU WANT TO SHINE LIKE A SUN FIRST YOU HAVE BURN LIKE IT".

  • #619509
    Hi Sheik,

    The Textbox in the Visual Studio defaultly contains the textmode property s password So it means while displaying it in to the grid, you can add the textbox as template field and bidn the textbox text property as password.
    Now to store the password, in the database, you need to use some encryption mechenuism which will make your passowrd as encrypted mode nd then you can store it in binary format. While retrieving , again you need to decrypt with the same alorightm and use it.
    By thsi way you can fullfill your both the criterias.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.