{"action":"opened","issue":{"url":"https://api.github.com/repos/liqd/thentos/issues/138","labels_url":"https://api.github.com/repos/liqd/thentos/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/liqd/thentos/issues/138/comments","events_url":"https://api.github.com/repos/liqd/thentos/issues/138/events","html_url":"https://github.com/liqd/thentos/issues/138","id":87288667,"number":138,"title":"Consider using the nonce package","user":{"login":"fhartwig","id":83271,"avatar_url":"https://avatars.githubusercontent.com/u/83271?v=3","gravatar_id":"","url":"https://api.github.com/users/fhartwig","html_url":"https://github.com/fhartwig","followers_url":"https://api.github.com/users/fhartwig/followers","following_url":"https://api.github.com/users/fhartwig/following{/other_user}","gists_url":"https://api.github.com/users/fhartwig/gists{/gist_id}","starred_url":"https://api.github.com/users/fhartwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhartwig/subscriptions","organizations_url":"https://api.github.com/users/fhartwig/orgs","repos_url":"https://api.github.com/users/fhartwig/repos","events_url":"https://api.github.com/users/fhartwig/events{/privacy}","received_events_url":"https://api.github.com/users/fhartwig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-11T10:02:27Z","updated_at":"2015-06-11T10:02:27Z","closed_at":null,"body":"We're currently using nonces for user confirmation tokens, email reset tokens, session tokens etc. These are generated by `genRandomBytes'P` from `Thentos.Action.Core`.\r\nThere is a new-ish package called [nonce](https://hackage.haskell.org/package/nonce) on hackage to generate nonces. Since nonce-generation is fairly easy to get wrong in fairly subtle ways (e.g. re-using nonces, generating insufficiently random nonces etc.), we might want to use that instead of rolling our own."}}