Blogposter.Utils.DecodePass C# (CSharp) Method

DecodePass() public static method

public static DecodePass ( XmlNode account ) : string
account System.Xml.XmlNode
return string
        public static string DecodePass(XmlNode account)
        {
            string password = Utils.SelectSingleNodeText(account, "password");
            if (password == "")
                return "";
            else
            {
                byte[] passwdbytes = Convert.FromBase64String (password);
                return Encoding.UTF8.GetString (passwdbytes);
            }
        }