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

Cryptography
JLL05
deviaaraprasad
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 :)