{"action":"created","issue":{"url":"https://api.github.com/repos/pyca/bcrypt/issues/13","repository_url":"https://api.github.com/repos/pyca/bcrypt","labels_url":"https://api.github.com/repos/pyca/bcrypt/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/pyca/bcrypt/issues/13/comments","events_url":"https://api.github.com/repos/pyca/bcrypt/issues/13/events","html_url":"https://github.com/pyca/bcrypt/issues/13","id":43316899,"number":13,"title":"Use your own custom salt","user":{"login":"p91","id":1479290,"avatar_url":"https://avatars.githubusercontent.com/u/1479290?v=3","gravatar_id":"","url":"https://api.github.com/users/p91","html_url":"https://github.com/p91","followers_url":"https://api.github.com/users/p91/followers","following_url":"https://api.github.com/users/p91/following{/other_user}","gists_url":"https://api.github.com/users/p91/gists{/gist_id}","starred_url":"https://api.github.com/users/p91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p91/subscriptions","organizations_url":"https://api.github.com/users/p91/orgs","repos_url":"https://api.github.com/users/p91/repos","events_url":"https://api.github.com/users/p91/events{/privacy}","received_events_url":"https://api.github.com/users/p91/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-09-20T18:50:04Z","updated_at":"2016-06-28T17:29:49Z","closed_at":"2016-06-28T17:29:48Z","body":"Hi,\r\n\r\nI want to use bcrypt in a challenge response scheme.\r\nFor this, I need a way to set the salt myself (the idea is that the salt is the challenge given)\r\nWith PHP, this was not a problem but I do not understand how this is done here.\r\nAFAIK the salt for a bcrypt hash should be 16 random bytes. How can I us my own salt with bcrypt in python?\r\n\r\nwith best regards,\r\n\r\np91\r\n"},"comment":{"url":"https://api.github.com/repos/pyca/bcrypt/issues/comments/229121662","html_url":"https://github.com/pyca/bcrypt/issues/13#issuecomment-229121662","issue_url":"https://api.github.com/repos/pyca/bcrypt/issues/13","id":229121662,"user":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T17:29:48Z","updated_at":"2016-06-28T17:29:48Z","body":"The scheme of a salt is pretty straightforward and is documented elsewhere. People who wish to do this can build their own salt outside of this library and then feed the salt to `hashpw`."}}
{"actor":{"display_login":"reaperhulk"}}