Posted on: 3/24/2012 8:08:27 AM | Views : 411

Hi
I have written the code like this for this task? Could you review my code, is it secure or not ?
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; public class EncryptionTest { public static string Encrypt(string strPassword) { FormsAuthenticationTicket Ftk = new FormsAuthenticationTicket(strPassword, false, 500); return FormsAuthentication.Encrypt(Ftk); } public static string Decrypt(string encryptedString) { FormsAuthenticationTicket Ftk = FormsAuthentication.Decrypt(encryptedString); return Ftk.Name; } }  

...

Go to the complete details ...