This is a function using MD5 encrypted, (very simple)
Public String Encrypassword (String PWD) {String Encry = System.Web.Security.FormsAuthentication.HashPasswordforstoringInfigfile (PWD, "MD5"); Return Encry;}