public virtual void GetNonZeroBytes(byte[] data)
{
// For compatibility we cannot have it be abstract. Since this technically is an abstract method
// with no implementation, we'll just throw NotImplementedException.
throw new NotImplementedException();
}
public TokenManager() { sha1 = SHA1.Create(); random = RandomNumberGenerator.Create(); LastSecretGeneration = DateTime.MinValue; //in order to force the update secret = new byte[10]; previousSecret = new byte[10]; random.GetNonZeroBytes(secret); random.GetNonZeroBytes(previousSecret); }