Example #1
0
        public void setPassword(string pass)
        {
            CryptoService.Service proxy = new CryptoService.Service();
            try
            {
                password = proxy.Encrypt(pass);
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);

            }
        }
Example #2
0
        public User(int admin, string user, string pass)
        {
            CryptoService.Service proxy = new CryptoService.Service();
            try
            {
                this.admin = admin;
                username = user;
                password = proxy.Encrypt(pass);
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);

            }
        }