<%@ import namespace="system.web.security" %> <html> <head> <script language="vb" runat=server> ' this function encrypts the input string using the sha1 and md5 ' encryption algorithms sub encryptstring(src as object, e as eventargs) sha1.text = cookieauthentication.hashpasswordforstoringinconfigfile(txtpassword.text, "sha1") md5.text = cookieauthentication.hashpasswordforstoringinconfigfile(txtpassword.text, "md5") end sub </script> </head> <body>