示例#1
0
 public MiniAuth(string secret)
 {
     _auth = new Authenticator(HmacEncryptor.CreateSha256(secret));
 }
示例#2
0
 public void Initialize()
 {
     _encryptor     = HmacEncryptor.CreateSha256("secret");
     _authenticator = new Authenticator(_encryptor);
 }