Skip to content

encontact/enki.totp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

totp-net

Origin

Project based on: https://github.com/mirthas/totp-net

What is

A little totp c# library + CLI project.

Quickstart

Generate the Actual code for the Secret GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ. The secret has to be base32 encoded. In this Example t1 is set to 30sec and we will get a 8 digit long code.

string secret = "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ";
Totp totp = new Totp(secret,30,8);
string totpCode = totp.getCodeString();

Resorces

Used Librarys and Classes

Packing and Publish

  1. dotnet pack --output nupkgs /p:PackageVersion=1.0.1{version}
  2. nuget.exe push -Source {NuGet package source URL} -ApiKey key {your_package}.nupkg`

Learn to Versioning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published