SHA1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Groh

    SHA1

    Hi Folks,
    Could someone gime an example of criptography using SHA1 ? Is it easy ?
    That a simple login system, I just need to criptography the pwd when I
    insert and when i retrive from the DataBase.

    Thank you all!

    --

    Daniel Andrade Groh
    CTF Technologies


  • VC# Jones

    #2
    RE: SHA1

    Actually, it is very simple if you use the .NET WEb Security Encryption.
    Something like this:

    System.Web.Secu rity.HashPasswo rdForStoringInC onfigFile("thep assword", "SHA1");

    The only problem is you can't decrypt it because the framework uses it's own
    key, which you cannot see. HOWEVER, assuming you used the same key for all
    passwords, you can specify your own key to the Framework in the
    machine.config file. It will use that key all the time.

    With that simple line of code you can encrypt a password and compare it to a
    value that is already encrypted.

    However, if you need to do manual encryption, it is straight forward as
    well. I can explain that to you if this doesn't help.

    "Daniel Groh" wrote:
    [color=blue]
    > Hi Folks,
    > Could someone gime an example of criptography using SHA1 ? Is it easy ?
    > That a simple login system, I just need to criptography the pwd when I
    > insert and when i retrive from the DataBase.
    >
    > Thank you all!
    >
    > --
    >
    > Daniel Andrade Groh
    > CTF Technologies
    >
    >
    >[/color]

    Comment

    Working...