achieve password encryption

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default achieve password encryption

    Hello folks,

    how can I encrypt the password that an user enters in my normal login
    window.


    Thank you

    Anton


    Anton Sommer Guest

  2. Similar Questions and Discussions

    1. Datasource password encryption
      I need an answer for the following: Does MX7 encrypt the password stored for a Data Source created within coldfusion? If so, what encryption does it...
    2. Encryption - DSN password
      I need an answer for the following. Does MX7 encrypt the password stored for a Data Source created within coldfusion? If so, what encryption does...
    3. Account creations (password encryption)
      I am creating a new login system for a website to the administrator functions and I've never created encrypted passwords before. Any simple methods...
    4. Symmetric encryption using password
      this is a simple class for encrypting and decrypting a string with a password. public class CryptoManager { public CryptoManager(){ }
    5. Password encryption
      I've experimented with this and it works well. http://www.aspin.com/func/search?hidden1x=23&hidden1y=4&tree=aspin&qry=cast128&cat= Also,...
  3. #2

    Default Re: achieve password encryption

    Hi,
    You might want to try this


    public string GetEncryptedPassword(string sPass)

    {

    return
    FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");

    }

    "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
    news:bprt45$8p3$07$1@news.t-online.com...
    > Hello folks,
    >
    > how can I encrypt the password that an user enters in my normal login
    > window.
    >
    >
    > Thank you
    >
    > Anton
    >
    >

    Pete Guest

  4. #3

    Default Re: achieve password encryption

    thank you for responding Pete,


    but can you give me a few more details, I am not understanding how the
    password should be encrypted client wise

    thank you


    Anton
    "Pete" <peted "at" xboxracing dot net> schrieb im Newsbeitrag
    news:ODtHRrPtDHA.640@tk2msftngp13.phx.gbl...
    > Hi,
    > You might want to try this
    >
    >
    > public string GetEncryptedPassword(string sPass)
    >
    > {
    >
    > return
    > FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");
    >
    > }
    >
    > "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
    > news:bprt45$8p3$07$1@news.t-online.com...
    > > Hello folks,
    > >
    > > how can I encrypt the password that an user enters in my normal login
    > > window.
    > >
    > >
    > > Thank you
    > >
    > > Anton
    > >
    > >
    >
    >

    Anton Sommer Guest

  5. #4

    Default Re: achieve password encryption

    Hi Anton,
    Sorry I never comment code ;-(

    All this does is encrypt a client passed string (password).

    You could use this as follows:

    1) User creates an account, you encrypt the password before storing in the
    db with the userId
    2) When a user logs on you encrypt the supplied (logon) password and compare
    it with whats stored in the db.

    All encryption is done on the server not the client so you'd be wise to use
    SSL if your site has sensitive info.

    Hope this helps a bit.

    Pete



    "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
    news:bq87vb$d5p$05$1@news.t-online.com...
    > thank you for responding Pete,
    >
    >
    > but can you give me a few more details, I am not understanding how the
    > password should be encrypted client wise
    >
    > thank you
    >
    >
    > Anton
    > "Pete" <peted "at" xboxracing dot net> schrieb im Newsbeitrag
    > news:ODtHRrPtDHA.640@tk2msftngp13.phx.gbl...
    > > Hi,
    > > You might want to try this
    > >
    > >
    > > public string GetEncryptedPassword(string sPass)
    > >
    > > {
    > >
    > > return
    > > FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");
    > >
    > > }
    > >
    > > "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
    > > news:bprt45$8p3$07$1@news.t-online.com...
    > > > Hello folks,
    > > >
    > > > how can I encrypt the password that an user enters in my normal login
    > > > window.
    > > >
    > > >
    > > > Thank you
    > > >
    > > > Anton
    > > >
    > > >
    > >
    > >
    >
    >

    Pete Guest

  6. #5

    Default Re: achieve password encryption

    Thanks for responding Pete,
    > All encryption is done on the server not the client so you'd be wise to
    use
    > SSL if your site has sensitive info.
    >
    Well I meant anyway encrypting the password on the way from the client to
    the webserver, so is SSL then the only opportunity there? How could I
    achieve it or are there different solutions to secure the transmission of a
    password on the way from the client to the webserver.


    Thanks

    Anton



    P.S. Ironically in my case it would help a lot to me if the browsers would
    simply display the page as being secure (Key sign or locked lock sign)


    Anton Sommer Guest

  7. #6

    Default Re: achieve password encryption

    > Well I meant anyway encrypting the password on the way from the client to
    > the webserver, so is SSL then the only opportunity there? How could I
    > achieve it or are there different solutions to secure the transmission of
    a
    > password on the way from the client to the webserver.
    >
    I'd say SSL is the way to go as any technology you employ on the client
    could be
    open to abuse. Besides, SSL does it all for "free" for you (apart from a
    slight
    performance overhead)

    A client side solution would probably be script based unless your thinking
    of
    installing assemblies (possible if it's in the intranet though).
    I think client-side code should be kept to a minimum...especially when it's
    security related.

    HTH

    Pete



    Pete Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139