{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/phlib/encrypt/pulls/4","id":65462224,"html_url":"https://github.com/phlib/encrypt/pull/4","diff_url":"https://github.com/phlib/encrypt/pull/4.diff","patch_url":"https://github.com/phlib/encrypt/pull/4.patch","issue_url":"https://api.github.com/repos/phlib/encrypt/issues/4","number":4,"state":"open","locked":false,"title":"Use separate keys for encryption and authentication","user":{"login":"Pudge601","id":2520380,"avatar_url":"https://avatars.githubusercontent.com/u/2520380?v=3","gravatar_id":"","url":"https://api.github.com/users/Pudge601","html_url":"https://github.com/Pudge601","followers_url":"https://api.github.com/users/Pudge601/followers","following_url":"https://api.github.com/users/Pudge601/following{/other_user}","gists_url":"https://api.github.com/users/Pudge601/gists{/gist_id}","starred_url":"https://api.github.com/users/Pudge601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pudge601/subscriptions","organizations_url":"https://api.github.com/users/Pudge601/orgs","repos_url":"https://api.github.com/users/Pudge601/repos","events_url":"https://api.github.com/users/Pudge601/events{/privacy}","received_events_url":"https://api.github.com/users/Pudge601/received_events","type":"User","site_admin":false},"body":"The derived key is still generated the same way as before, but we're now splitting the string to give two separate keys.\r\n\r\nThis means that each key will now be 128 bits instead of 256 bits, but this should still be sufficient for use in the hmac and encryption.","created_at":"2016-04-06T13:04:41Z","updated_at":"2016-04-06T13:04:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"chrisminett","id":1084019,"avatar_url":"https://avatars.githubusercontent.com/u/1084019?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisminett","html_url":"https://github.com/chrisminett","followers_url":"https://api.github.com/users/chrisminett/followers","following_url":"https://api.github.com/users/chrisminett/following{/other_user}","gists_url":"https://api.github.com/users/chrisminett/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisminett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisminett/subscriptions","organizations_url":"https://api.github.com/users/chrisminett/orgs","repos_url":"https://api.github.com/users/chrisminett/repos","events_url":"https://api.github.com/users/chrisminett/events{/privacy}","received_events_url":"https://api.github.com/users/chrisminett/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/phlib/encrypt/pulls/4/commits","review_comments_url":"https://api.github.com/repos/phlib/encrypt/pulls/4/comments","review_comment_url":"https://api.github.com/repos/phlib/encrypt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phlib/encrypt/issues/4/comments","statuses_url":"https://api.github.com/repos/phlib/encrypt/statuses/c006e9e82fda5dd698a915488a78f448a9dcfcef","head":{"label":"phlib:feature/enc-auth-key-reuse","ref":"feature/enc-auth-key-reuse","sha":"c006e9e82fda5dd698a915488a78f448a9dcfcef","user":{"login":"phlib","id":8135844,"avatar_url":"https://avatars.githubusercontent.com/u/8135844?v=3","gravatar_id":"","url":"https://api.github.com/users/phlib","html_url":"https://github.com/phlib","followers_url":"https://api.github.com/users/phlib/followers","following_url":"https://api.github.com/users/phlib/following{/other_user}","gists_url":"https://api.github.com/users/phlib/gists{/gist_id}","starred_url":"https://api.github.com/users/phlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlib/subscriptions","organizations_url":"https://api.github.com/users/phlib/orgs","repos_url":"https://api.github.com/users/phlib/repos","events_url":"https://api.github.com/users/phlib/events{/privacy}","received_events_url":"https://api.github.com/users/phlib/received_events","type":"Organization","site_admin":false},"repo":{"id":51532361,"name":"encrypt","full_name":"phlib/encrypt","owner":{"login":"phlib","id":8135844,"avatar_url":"https://avatars.githubusercontent.com/u/8135844?v=3","gravatar_id":"","url":"https://api.github.com/users/phlib","html_url":"https://github.com/phlib","followers_url":"https://api.github.com/users/phlib/followers","following_url":"https://api.github.com/users/phlib/following{/other_user}","gists_url":"https://api.github.com/users/phlib/gists{/gist_id}","starred_url":"https://api.github.com/users/phlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlib/subscriptions","organizations_url":"https://api.github.com/users/phlib/orgs","repos_url":"https://api.github.com/users/phlib/repos","events_url":"https://api.github.com/users/phlib/events{/privacy}","received_events_url":"https://api.github.com/users/phlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phlib/encrypt","description":"PHP encryption/decryption tool","fork":false,"url":"https://api.github.com/repos/phlib/encrypt","forks_url":"https://api.github.com/repos/phlib/encrypt/forks","keys_url":"https://api.github.com/repos/phlib/encrypt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phlib/encrypt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phlib/encrypt/teams","hooks_url":"https://api.github.com/repos/phlib/encrypt/hooks","issue_events_url":"https://api.github.com/repos/phlib/encrypt/issues/events{/number}","events_url":"https://api.github.com/repos/phlib/encrypt/events","assignees_url":"https://api.github.com/repos/phlib/encrypt/assignees{/user}","branches_url":"https://api.github.com/repos/phlib/encrypt/branches{/branch}","tags_url":"https://api.github.com/repos/phlib/encrypt/tags","blobs_url":"https://api.github.com/repos/phlib/encrypt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phlib/encrypt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phlib/encrypt/git/refs{/sha}","trees_url":"https://api.github.com/repos/phlib/encrypt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phlib/encrypt/statuses/{sha}","languages_url":"https://api.github.com/repos/phlib/encrypt/languages","stargazers_url":"https://api.github.com/repos/phlib/encrypt/stargazers","contributors_url":"https://api.github.com/repos/phlib/encrypt/contributors","subscribers_url":"https://api.github.com/repos/phlib/encrypt/subscribers","subscription_url":"https://api.github.com/repos/phlib/encrypt/subscription","commits_url":"https://api.github.com/repos/phlib/encrypt/commits{/sha}","git_commits_url":"https://api.github.com/repos/phlib/encrypt/git/commits{/sha}","comments_url":"https://api.github.com/repos/phlib/encrypt/comments{/number}","issue_comment_url":"https://api.github.com/repos/phlib/encrypt/issues/comments{/number}","contents_url":"https://api.github.com/repos/phlib/encrypt/contents/{+path}","compare_url":"https://api.github.com/repos/phlib/encrypt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phlib/encrypt/merges","archive_url":"https://api.github.com/repos/phlib/encrypt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phlib/encrypt/downloads","issues_url":"https://api.github.com/repos/phlib/encrypt/issues{/number}","pulls_url":"https://api.github.com/repos/phlib/encrypt/pulls{/number}","milestones_url":"https://api.github.com/repos/phlib/encrypt/milestones{/number}","notifications_url":"https://api.github.com/repos/phlib/encrypt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phlib/encrypt/labels{/name}","releases_url":"https://api.github.com/repos/phlib/encrypt/releases{/id}","deployments_url":"https://api.github.com/repos/phlib/encrypt/deployments","created_at":"2016-02-11T17:29:47Z","updated_at":"2016-02-12T09:12:36Z","pushed_at":"2016-04-06T13:02:38Z","git_url":"git://github.com/phlib/encrypt.git","ssh_url":"git@github.com:phlib/encrypt.git","clone_url":"https://github.com/phlib/encrypt.git","svn_url":"https://github.com/phlib/encrypt","homepage":"","size":11,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"phlib:master","ref":"master","sha":"02384ebe1dd47bcdf94d4dbb2fc38f7c157a591d","user":{"login":"phlib","id":8135844,"avatar_url":"https://avatars.githubusercontent.com/u/8135844?v=3","gravatar_id":"","url":"https://api.github.com/users/phlib","html_url":"https://github.com/phlib","followers_url":"https://api.github.com/users/phlib/followers","following_url":"https://api.github.com/users/phlib/following{/other_user}","gists_url":"https://api.github.com/users/phlib/gists{/gist_id}","starred_url":"https://api.github.com/users/phlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlib/subscriptions","organizations_url":"https://api.github.com/users/phlib/orgs","repos_url":"https://api.github.com/users/phlib/repos","events_url":"https://api.github.com/users/phlib/events{/privacy}","received_events_url":"https://api.github.com/users/phlib/received_events","type":"Organization","site_admin":false},"repo":{"id":51532361,"name":"encrypt","full_name":"phlib/encrypt","owner":{"login":"phlib","id":8135844,"avatar_url":"https://avatars.githubusercontent.com/u/8135844?v=3","gravatar_id":"","url":"https://api.github.com/users/phlib","html_url":"https://github.com/phlib","followers_url":"https://api.github.com/users/phlib/followers","following_url":"https://api.github.com/users/phlib/following{/other_user}","gists_url":"https://api.github.com/users/phlib/gists{/gist_id}","starred_url":"https://api.github.com/users/phlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlib/subscriptions","organizations_url":"https://api.github.com/users/phlib/orgs","repos_url":"https://api.github.com/users/phlib/repos","events_url":"https://api.github.com/users/phlib/events{/privacy}","received_events_url":"https://api.github.com/users/phlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phlib/encrypt","description":"PHP encryption/decryption tool","fork":false,"url":"https://api.github.com/repos/phlib/encrypt","forks_url":"https://api.github.com/repos/phlib/encrypt/forks","keys_url":"https://api.github.com/repos/phlib/encrypt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phlib/encrypt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phlib/encrypt/teams","hooks_url":"https://api.github.com/repos/phlib/encrypt/hooks","issue_events_url":"https://api.github.com/repos/phlib/encrypt/issues/events{/number}","events_url":"https://api.github.com/repos/phlib/encrypt/events","assignees_url":"https://api.github.com/repos/phlib/encrypt/assignees{/user}","branches_url":"https://api.github.com/repos/phlib/encrypt/branches{/branch}","tags_url":"https://api.github.com/repos/phlib/encrypt/tags","blobs_url":"https://api.github.com/repos/phlib/encrypt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phlib/encrypt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phlib/encrypt/git/refs{/sha}","trees_url":"https://api.github.com/repos/phlib/encrypt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phlib/encrypt/statuses/{sha}","languages_url":"https://api.github.com/repos/phlib/encrypt/languages","stargazers_url":"https://api.github.com/repos/phlib/encrypt/stargazers","contributors_url":"https://api.github.com/repos/phlib/encrypt/contributors","subscribers_url":"https://api.github.com/repos/phlib/encrypt/subscribers","subscription_url":"https://api.github.com/repos/phlib/encrypt/subscription","commits_url":"https://api.github.com/repos/phlib/encrypt/commits{/sha}","git_commits_url":"https://api.github.com/repos/phlib/encrypt/git/commits{/sha}","comments_url":"https://api.github.com/repos/phlib/encrypt/comments{/number}","issue_comment_url":"https://api.github.com/repos/phlib/encrypt/issues/comments{/number}","contents_url":"https://api.github.com/repos/phlib/encrypt/contents/{+path}","compare_url":"https://api.github.com/repos/phlib/encrypt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phlib/encrypt/merges","archive_url":"https://api.github.com/repos/phlib/encrypt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phlib/encrypt/downloads","issues_url":"https://api.github.com/repos/phlib/encrypt/issues{/number}","pulls_url":"https://api.github.com/repos/phlib/encrypt/pulls{/number}","milestones_url":"https://api.github.com/repos/phlib/encrypt/milestones{/number}","notifications_url":"https://api.github.com/repos/phlib/encrypt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phlib/encrypt/labels{/name}","releases_url":"https://api.github.com/repos/phlib/encrypt/releases{/id}","deployments_url":"https://api.github.com/repos/phlib/encrypt/deployments","created_at":"2016-02-11T17:29:47Z","updated_at":"2016-02-12T09:12:36Z","pushed_at":"2016-04-06T13:02:38Z","git_url":"git://github.com/phlib/encrypt.git","ssh_url":"git@github.com:phlib/encrypt.git","clone_url":"https://github.com/phlib/encrypt.git","svn_url":"https://github.com/phlib/encrypt","homepage":"","size":11,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phlib/encrypt/pulls/4"},"html":{"href":"https://github.com/phlib/encrypt/pull/4"},"issue":{"href":"https://api.github.com/repos/phlib/encrypt/issues/4"},"comments":{"href":"https://api.github.com/repos/phlib/encrypt/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/phlib/encrypt/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/phlib/encrypt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phlib/encrypt/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/phlib/encrypt/statuses/c006e9e82fda5dd698a915488a78f448a9dcfcef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":6,"changed_files":1}}