Exforsys
+ Reply to Thread
Results 1 to 3 of 3

SHA1Managed() not found

This is a discussion on SHA1Managed() not found within the Microsoft .NET forums, part of the Programming Talk category; Hi, im doing a pocket PC application in VB.net. Im trying to hash a password using SHA1Managed(), but im getting ...

  1. #1
    NareshShroff is offline Junior Member Array
    Join Date
    Apr 2004
    Answers
    18

    SHA1Managed() not found

    Hi,
    im doing a pocket PC application in VB.net.
    Im trying to hash a password using SHA1Managed(), but im getting an error saying SHA1Managed is not found.

    -----------------------------------------
    Dim shaMged As New SHA1Managed()
    -----------------------------------------

    i imported namespace: System.Security.Cryptography

    but still getting error.

    i even tried System.Security.Cryptography.SHA1 but i dont have that namespace on my system. I mean its not showing in dropdown menu. Kindly help me out

    Thanks in advance


  2. #2
    sanereddy Guest

    Re:SHA1Managed() not found

    Naresh, Take a look at these very noce articles and sample code on hashing.


    ASP.NET provides a very convenient way to create a hashed string from a user inputted value. A common issue with storing passwords in flat file or even the database, is that unwanted eyes can potential see your users passwords and hack into your web application. In order to hide users passwords in the database, you can create a hashed value of the password and store it in the database. The benefit of storing a hashed value for your passwords is that other people will never know the actual password. The drawback of this approach is of course if you forget the password, its very hard to recover.

    http://www.csharpfriends.com/Article...?articleID=344

    http://www.csharpfriends.com/Forums/...x?PostID=17801

    Hope this helps.
    thanks,
    sanereddy


  3. #3
    NareshShroff is offline Junior Member Array
    Join Date
    Apr 2004
    Answers
    18

    Re:SHA1Managed() not found

    thanks sanereddy garu.
    but that formsauthentication article is applicable only for Web applications.
    im actually developing windows application for pocket pc.
    the same worked fine for desktop windows application but when it comes to smart device application, im getting error that SHA1Managed() is not found.

    Thanks,
    Naresh


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...