{"action":"created","issue":{"url":"https://api.github.com/repos/Keyang/htoken/issues/3","repository_url":"https://api.github.com/repos/Keyang/htoken","labels_url":"https://api.github.com/repos/Keyang/htoken/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Keyang/htoken/issues/3/comments","events_url":"https://api.github.com/repos/Keyang/htoken/issues/3/events","html_url":"https://github.com/Keyang/htoken/issues/3","id":283062044,"number":3,"title":"Output should be zero-padded","user":{"login":"swansontec","id":276214,"avatar_url":"https://avatars0.githubusercontent.com/u/276214?v=4","gravatar_id":"","url":"https://api.github.com/users/swansontec","html_url":"https://github.com/swansontec","followers_url":"https://api.github.com/users/swansontec/followers","following_url":"https://api.github.com/users/swansontec/following{/other_user}","gists_url":"https://api.github.com/users/swansontec/gists{/gist_id}","starred_url":"https://api.github.com/users/swansontec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swansontec/subscriptions","organizations_url":"https://api.github.com/users/swansontec/orgs","repos_url":"https://api.github.com/users/swansontec/repos","events_url":"https://api.github.com/users/swansontec/events{/privacy}","received_events_url":"https://api.github.com/users/swansontec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-19T00:03:50Z","updated_at":"2017-12-19T22:19:57Z","closed_at":null,"author_association":"NONE","body":"When initializing RFC4226 with the base-32 encoded string `AAAAAAAA` (i.e. 5 bytes of 0's), the HTOP for counter=2 should be \"073348\", and the HOTP for counter=9 should be \"003773\". The following code does not appear to produce the necessary leading 0's:\r\n\r\n```js\r\nreturn codeStr.substr(codeStr.length - length);\r\n```"},"comment":{"url":"https://api.github.com/repos/Keyang/htoken/issues/comments/352904032","html_url":"https://github.com/Keyang/htoken/issues/3#issuecomment-352904032","issue_url":"https://api.github.com/repos/Keyang/htoken/issues/3","id":352904032,"user":{"login":"Keyang","id":1092855,"avatar_url":"https://avatars1.githubusercontent.com/u/1092855?v=4","gravatar_id":"","url":"https://api.github.com/users/Keyang","html_url":"https://github.com/Keyang","followers_url":"https://api.github.com/users/Keyang/followers","following_url":"https://api.github.com/users/Keyang/following{/other_user}","gists_url":"https://api.github.com/users/Keyang/gists{/gist_id}","starred_url":"https://api.github.com/users/Keyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keyang/subscriptions","organizations_url":"https://api.github.com/users/Keyang/orgs","repos_url":"https://api.github.com/users/Keyang/repos","events_url":"https://api.github.com/users/Keyang/events{/privacy}","received_events_url":"https://api.github.com/users/Keyang/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T22:19:57Z","updated_at":"2017-12-19T22:19:57Z","author_association":"OWNER","body":"Interesting. I never had this issue for the past few years. I will take a look."}}
{"actor":{"display_login":"Keyang"}}