using System;
using Microsoft.SPOT;

namespace Idiot.Net
{
    class Credentials
    {
    }
}

using System;
using Microsoft.SPOT;
using System.Text;
using GHIElectronics.NETMF.Net;

namespace Idiot.Net
{
    public class Credentials
    {
        private string username;

        private string password;

        public Credentials(string username, string password)
        {
            this.username = username;
            this.password = password;

            this.AuthorizationHeader = this.toAuthorizationHeader();
        }

        /// <summary>
        /// Basic authorization header value to be used for server authentication
        /// </summary>
        public string AuthorizationHeader { get; private set; }

        private string toAuthorizationHeader()
        {
            return "Basic " + ConvertBase64.ToBase64String(Encoding.UTF8.GetBytes(this.username + ":" + this.password));
        }

    }
}

Add credentials class for user authorization
Add credentials class for user authorization
