{"action":"created","issue":{"url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/8","repository_url":"https://api.github.com/repos/kspearrin/Otp.NET","labels_url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/8/comments","events_url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/8/events","html_url":"https://github.com/kspearrin/Otp.NET/issues/8","id":328527465,"node_id":"MDU6SXNzdWUzMjg1Mjc0NjU=","number":8,"title":"Generated codes do not match Google Authenticator results","user":{"login":"derekantrican","id":1558019,"node_id":"MDQ6VXNlcjE1NTgwMTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1558019?v=4","gravatar_id":"","url":"https://api.github.com/users/derekantrican","html_url":"https://github.com/derekantrican","followers_url":"https://api.github.com/users/derekantrican/followers","following_url":"https://api.github.com/users/derekantrican/following{/other_user}","gists_url":"https://api.github.com/users/derekantrican/gists{/gist_id}","starred_url":"https://api.github.com/users/derekantrican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekantrican/subscriptions","organizations_url":"https://api.github.com/users/derekantrican/orgs","repos_url":"https://api.github.com/users/derekantrican/repos","events_url":"https://api.github.com/users/derekantrican/events{/privacy}","received_events_url":"https://api.github.com/users/derekantrican/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T13:49:17Z","updated_at":"2018-06-01T13:52:42Z","closed_at":null,"author_association":"NONE","body":"I am using this code:\r\n\r\n    string secret = \"KREQPD7NXSGO3T3B\";\r\n    while (true)\r\n    {\r\n        byte[] secretBytes = new Base32Encoder().Decode(secret);\r\n        OtpNet.Totp totp = new OtpNet.Totp(secretBytes);\r\n        string twoFactorCode = totp.ComputeTotp();\r\n    \r\n        Console.WriteLine(\"Two factor code: \" + twoFactorCode);\r\n    \r\n        System.Threading.Thread.Sleep(2000);\r\n    }\r\n\r\nNow if you take that same string (for `secret`) and put it in to Google Authenticator manually, you will notice that this code generates different keys. On the otherhand, if I use a different value for secret (eg \"uhj34qsyuwftzji4qq6k3c3wnstdb57m\") then both the values generated by OtpNet and Google Authenticator will match.\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/comments/393887274","html_url":"https://github.com/kspearrin/Otp.NET/issues/8#issuecomment-393887274","issue_url":"https://api.github.com/repos/kspearrin/Otp.NET/issues/8","id":393887274,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzg4NzI3NA==","user":{"login":"derekantrican","id":1558019,"node_id":"MDQ6VXNlcjE1NTgwMTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1558019?v=4","gravatar_id":"","url":"https://api.github.com/users/derekantrican","html_url":"https://github.com/derekantrican","followers_url":"https://api.github.com/users/derekantrican/followers","following_url":"https://api.github.com/users/derekantrican/following{/other_user}","gists_url":"https://api.github.com/users/derekantrican/gists{/gist_id}","starred_url":"https://api.github.com/users/derekantrican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekantrican/subscriptions","organizations_url":"https://api.github.com/users/derekantrican/orgs","repos_url":"https://api.github.com/users/derekantrican/repos","events_url":"https://api.github.com/users/derekantrican/events{/privacy}","received_events_url":"https://api.github.com/users/derekantrican/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T13:52:42Z","updated_at":"2018-06-01T13:52:42Z","author_association":"NONE","body":"@kspearrin I'm not sure. I was following the instructions in this article: https://dev.to/j_sakamoto/selenium-testing---how-to-sign-in-to-two-factor-authentication-2joi\r\n\r\nIs there a way to verify that?"}}
{"actor":{"display_login":"derekantrican"}}