/// <summary> /// This test computes a token using a secret. /// The result can be verified at the below website: /// https://totp.danhersam.com/ /// </summary> public void TokenGenerateTests() { var entry = new PwEntry(); if (entry.Totp == null) { entry.UpdateOtpUrl("otpauth://totp/Google%3Apxentry_test%40gmail.com?secret=JBSWY3DPEHPK3PXP&issuer=Google"); var Totp = entry.Totp; Debug.WriteLine($"Token={entry.Token}\tProgress={entry.Progress}"); Assert.NotNull(Totp); } int i = 0; for (i = 0; i < 30; i++) { Debug.WriteLine($"Token={entry.Token}\tProgress={entry.Progress}"); System.Threading.Thread.Sleep(3000); } }