{"action":"created","comment":{"url":"https://api.github.com/repos/bndw/pick/pulls/comments/77445657","id":77445657,"diff_hunk":"@@ -0,0 +1,44 @@\n+package safe\n+\n+import (\n+\t\"encoding/json\"\n+\n+\t\"github.com/bndw/pick/backends\"\n+\t\"github.com/bndw/pick/errors\"\n+\t\"github.com/bndw/pick/utils\"\n+)\n+\n+func Load(password []byte, backend backends.Backend) (*Safe, error) {","path":"safe/load.go","position":11,"original_position":11,"commit_id":"3eac367ff818e006ec42eae740a639c1288cd1f0","original_commit_id":"3eac367ff818e006ec42eae740a639c1288cd1f0","user":{"login":"leonklingele","id":5585491,"avatar_url":"https://avatars.githubusercontent.com/u/5585491?v=3","gravatar_id":"","url":"https://api.github.com/users/leonklingele","html_url":"https://github.com/leonklingele","followers_url":"https://api.github.com/users/leonklingele/followers","following_url":"https://api.github.com/users/leonklingele/following{/other_user}","gists_url":"https://api.github.com/users/leonklingele/gists{/gist_id}","starred_url":"https://api.github.com/users/leonklingele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonklingele/subscriptions","organizations_url":"https://api.github.com/users/leonklingele/orgs","repos_url":"https://api.github.com/users/leonklingele/repos","events_url":"https://api.github.com/users/leonklingele/events{/privacy}","received_events_url":"https://api.github.com/users/leonklingele/received_events","type":"User","site_admin":false},"body":"`backends.Backend` -> `Backend`?","created_at":"2016-09-04T01:52:14Z","updated_at":"2016-09-04T01:52:14Z","html_url":"https://github.com/bndw/pick/pull/17#discussion_r77445657","pull_request_url":"https://api.github.com/repos/bndw/pick/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/bndw/pick/pulls/comments/77445657"},"html":{"href":"https://github.com/bndw/pick/pull/17#discussion_r77445657"},"pull_request":{"href":"https://api.github.com/repos/bndw/pick/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/bndw/pick/pulls/17","id":83909482,"html_url":"https://github.com/bndw/pick/pull/17","diff_url":"https://github.com/bndw/pick/pull/17.diff","patch_url":"https://github.com/bndw/pick/pull/17.patch","issue_url":"https://api.github.com/repos/bndw/pick/issues/17","number":17,"state":"open","locked":false,"title":"F/golang","user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"body":"Replaces the original Python script with Go.\r\n\r\n### Why?\r\n* It's more secure. Previously we had to use `subprocess` to invoke GPG for encryption, and that required the master password to be passed in the call.\r\n* It's easier to distribute\r\n\r\n### Breaking changes\r\nThis implementation changes the data format, therefore encrypted safe files created by the old Python implementation are not compatible with the Go implementation.\r\n\r\nI'd like to resolve this with a standalone binary that can update the serialization format of a Python generated safe file. This shouldn't be much more that renaming `data` to `accounts` in the serialized JSON.","created_at":"2016-09-04T00:09:14Z","updated_at":"2016-09-04T01:52:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcf2ce55aa04f4c54317fe0ad1eb6a332a9155f6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bndw/pick/pulls/17/commits","review_comments_url":"https://api.github.com/repos/bndw/pick/pulls/17/comments","review_comment_url":"https://api.github.com/repos/bndw/pick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bndw/pick/issues/17/comments","statuses_url":"https://api.github.com/repos/bndw/pick/statuses/3eac367ff818e006ec42eae740a639c1288cd1f0","head":{"label":"bndw:f/golang","ref":"f/golang","sha":"3eac367ff818e006ec42eae740a639c1288cd1f0","user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"repo":{"id":45860231,"name":"pick","full_name":"bndw/pick","owner":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bndw/pick","description":"Minimal password manager for OS X and Linux","fork":false,"url":"https://api.github.com/repos/bndw/pick","forks_url":"https://api.github.com/repos/bndw/pick/forks","keys_url":"https://api.github.com/repos/bndw/pick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bndw/pick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bndw/pick/teams","hooks_url":"https://api.github.com/repos/bndw/pick/hooks","issue_events_url":"https://api.github.com/repos/bndw/pick/issues/events{/number}","events_url":"https://api.github.com/repos/bndw/pick/events","assignees_url":"https://api.github.com/repos/bndw/pick/assignees{/user}","branches_url":"https://api.github.com/repos/bndw/pick/branches{/branch}","tags_url":"https://api.github.com/repos/bndw/pick/tags","blobs_url":"https://api.github.com/repos/bndw/pick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bndw/pick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bndw/pick/git/refs{/sha}","trees_url":"https://api.github.com/repos/bndw/pick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bndw/pick/statuses/{sha}","languages_url":"https://api.github.com/repos/bndw/pick/languages","stargazers_url":"https://api.github.com/repos/bndw/pick/stargazers","contributors_url":"https://api.github.com/repos/bndw/pick/contributors","subscribers_url":"https://api.github.com/repos/bndw/pick/subscribers","subscription_url":"https://api.github.com/repos/bndw/pick/subscription","commits_url":"https://api.github.com/repos/bndw/pick/commits{/sha}","git_commits_url":"https://api.github.com/repos/bndw/pick/git/commits{/sha}","comments_url":"https://api.github.com/repos/bndw/pick/comments{/number}","issue_comment_url":"https://api.github.com/repos/bndw/pick/issues/comments{/number}","contents_url":"https://api.github.com/repos/bndw/pick/contents/{+path}","compare_url":"https://api.github.com/repos/bndw/pick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bndw/pick/merges","archive_url":"https://api.github.com/repos/bndw/pick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bndw/pick/downloads","issues_url":"https://api.github.com/repos/bndw/pick/issues{/number}","pulls_url":"https://api.github.com/repos/bndw/pick/pulls{/number}","milestones_url":"https://api.github.com/repos/bndw/pick/milestones{/number}","notifications_url":"https://api.github.com/repos/bndw/pick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bndw/pick/labels{/name}","releases_url":"https://api.github.com/repos/bndw/pick/releases{/id}","deployments_url":"https://api.github.com/repos/bndw/pick/deployments","created_at":"2015-11-09T19:07:55Z","updated_at":"2016-09-01T19:45:13Z","pushed_at":"2016-09-04T01:13:57Z","git_url":"git://github.com/bndw/pick.git","ssh_url":"git@github.com:bndw/pick.git","clone_url":"https://github.com/bndw/pick.git","svn_url":"https://github.com/bndw/pick","homepage":"","size":953,"stargazers_count":242,"watchers_count":242,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":242,"default_branch":"master"}},"base":{"label":"bndw:master","ref":"master","sha":"a0094c1d973b38ccaeff548e1906b43f69cdaf04","user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"repo":{"id":45860231,"name":"pick","full_name":"bndw/pick","owner":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bndw/pick","description":"Minimal password manager for OS X and Linux","fork":false,"url":"https://api.github.com/repos/bndw/pick","forks_url":"https://api.github.com/repos/bndw/pick/forks","keys_url":"https://api.github.com/repos/bndw/pick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bndw/pick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bndw/pick/teams","hooks_url":"https://api.github.com/repos/bndw/pick/hooks","issue_events_url":"https://api.github.com/repos/bndw/pick/issues/events{/number}","events_url":"https://api.github.com/repos/bndw/pick/events","assignees_url":"https://api.github.com/repos/bndw/pick/assignees{/user}","branches_url":"https://api.github.com/repos/bndw/pick/branches{/branch}","tags_url":"https://api.github.com/repos/bndw/pick/tags","blobs_url":"https://api.github.com/repos/bndw/pick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bndw/pick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bndw/pick/git/refs{/sha}","trees_url":"https://api.github.com/repos/bndw/pick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bndw/pick/statuses/{sha}","languages_url":"https://api.github.com/repos/bndw/pick/languages","stargazers_url":"https://api.github.com/repos/bndw/pick/stargazers","contributors_url":"https://api.github.com/repos/bndw/pick/contributors","subscribers_url":"https://api.github.com/repos/bndw/pick/subscribers","subscription_url":"https://api.github.com/repos/bndw/pick/subscription","commits_url":"https://api.github.com/repos/bndw/pick/commits{/sha}","git_commits_url":"https://api.github.com/repos/bndw/pick/git/commits{/sha}","comments_url":"https://api.github.com/repos/bndw/pick/comments{/number}","issue_comment_url":"https://api.github.com/repos/bndw/pick/issues/comments{/number}","contents_url":"https://api.github.com/repos/bndw/pick/contents/{+path}","compare_url":"https://api.github.com/repos/bndw/pick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bndw/pick/merges","archive_url":"https://api.github.com/repos/bndw/pick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bndw/pick/downloads","issues_url":"https://api.github.com/repos/bndw/pick/issues{/number}","pulls_url":"https://api.github.com/repos/bndw/pick/pulls{/number}","milestones_url":"https://api.github.com/repos/bndw/pick/milestones{/number}","notifications_url":"https://api.github.com/repos/bndw/pick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bndw/pick/labels{/name}","releases_url":"https://api.github.com/repos/bndw/pick/releases{/id}","deployments_url":"https://api.github.com/repos/bndw/pick/deployments","created_at":"2015-11-09T19:07:55Z","updated_at":"2016-09-01T19:45:13Z","pushed_at":"2016-09-04T01:13:57Z","git_url":"git://github.com/bndw/pick.git","ssh_url":"git@github.com:bndw/pick.git","clone_url":"https://github.com/bndw/pick.git","svn_url":"https://github.com/bndw/pick","homepage":"","size":953,"stargazers_count":242,"watchers_count":242,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":242,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bndw/pick/pulls/17"},"html":{"href":"https://github.com/bndw/pick/pull/17"},"issue":{"href":"https://api.github.com/repos/bndw/pick/issues/17"},"comments":{"href":"https://api.github.com/repos/bndw/pick/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/bndw/pick/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/bndw/pick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bndw/pick/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/bndw/pick/statuses/3eac367ff818e006ec42eae740a639c1288cd1f0"}}}}
{"actor":{"display_login":"leonklingele"}}