GetSHA256() public static method

public static GetSHA256 ( string text ) : string
text string
return string
Ejemplo n.º 1
0
        public string LoginWithEmail(string email, string password)
        {
            BasicLoginModel <EmailUser> model = new BasicLoginModel <EmailUser>
            {
                User = new EmailUser
                {
                    Email = email
                },
                Password = new PasswordModel
                {
                    Digest    = DdpUtil.GetSHA256(password),
                    Algorithm = "sha-256"
                }
            };

            return(Call("login", HandleLogin, model));
        }
Ejemplo n.º 2
0
        public string LoginWithUsername(string username, string password)
        {
            BasicLoginModel <UsernameUser> model = new BasicLoginModel <UsernameUser>
            {
                Password = new PasswordModel
                {
                    Digest    = DdpUtil.GetSHA256(password),
                    Algorithm = "sha-256"
                },
                User = new UsernameUser
                {
                    Username = username
                }
            };

            return(Call("login", HandleLogin, model));
        }