TheBlueSky.SwiftAuthenticator by Essam Almohammadi

<PackageReference Include="TheBlueSky.SwiftAuthenticator" Version="2.0.0" />

 Authenticator

public sealed class Authenticator

public int NumberOfPasswordDigits { get; }

public int SizeOfTimeStep { get; }

public DateTime StartDateTime { get; }

public Authenticator(Action<AuthenticatorOptions> setupAction = null)

public static string GenerateSecret(int size = 20)

public string GenerateCounterBasedPassword(string secret, ulong iterationNumber)

public string GenerateCounterBasedPassword(string secret, ulong iterationNumber, int digits)

public string GenerateTimeBasedPassword(string secret, Func<DateTime> nowFunc = null)

public string GenerateTimeBasedPassword(string secret, Func<DateTime> nowFunc, int digits = 6, int timeStep = 30)