Project based on: https://github.com/mirthas/totp-net
A little totp c# library + CLI project.
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();
- dotnet pack --output nupkgs /p:PackageVersion=1.0.1{version}
- nuget.exe push -Source {NuGet package source URL} -ApiKey key {your_package}.nupkg`