Skip to content

sim756/sim756.HOTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sim756.HOTP

HMAC-based one-time password generator.

https://www.nuget.org/packages/sim756.HOTP

https://github.com/sim756/sim756.HOTP

string hotp = new HOTPGenerator().Compute("QWERTYUIOPASDFGH");
string nextHotp = new HOTPGenerator().Compute("QWERTYUIOPASDFGH", DateTime.UtcNow.AddSeconds(30));
string hotp = new HOTPGenerator()
{
  KeyString = "QWERTYUIOPASDFGH",
  Length = 6,
  Steps = 30
}.Compute();