Cryptography

System.Web.Security;

string value = "3131"
in a web app.  this function
FormsAuthentication.HashPasswordForStoringInConfigFile (value, "sha1")
encryptes into a fantastic string of more than 20 meaningless characters..


I tried the same thing in windows application and it doesn't work.
System.Security.Cryptography doesn't have something like that...
anyone out there knows and equivalent to this function



Answer this question

Cryptography

  • JLL05

    Why not just use the System.Web.Security function in your winforms app

  • deviaaraprasad

    Yes, you can use System.Web.Security in your WindowsForms project.

    You just have to add a reference to System.Web to your project ;)


    HTH.

    Bye.


    PS: BTW, System.Web.Security is a namespace, not a function :)

  • Cryptography