public static string DecryptText(string text, string passwordPhrase) { var desDecrypted = DesEncrypt.DecryptString(text, passwordPhrase); //Remove pad bytes... desDecrypted = desDecrypted.Replace("\0", string.Empty); var aesDecrypted = AesEncrypt.DecryptText(desDecrypted, passwordPhrase); return(aesDecrypted); }