Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created October 8, 2018 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/4337b5ac73ac5a75a9bcd8e6723cda4c to your computer and use it in GitHub Desktop.
Save juucustodio/4337b5ac73ac5a75a9bcd8e6723cda4c to your computer and use it in GitHub Desktop.
Example how to implement a token generator in Xamarin.Forms Applications. - http://julianocustodio.com/token
long ResultOut = 0;
var otp = new Totp(Encoding.UTF8.GetBytes(Id));
bool valid = otp.VerifyTotp(Codigo, out ResultOut, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment