{"action":"created","comment":{"url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/comments/72732409","id":72732409,"diff_hunk":"@@ -0,0 +1,73 @@\n+'use strict';\n+\n+const async        = require('async');\n+const EventEmitter = require('events');\n+const crypto       = require('./lib/crypto.js');\n+\n+module.exports = class SessionEncrypt extends EventEmitter {\n+  constructor(key, store) {\n+    super();\n+    if (key.length != 32) {\n+      throw new Error(\"Invalid key length: must be 32 bytes\");","path":"index.js","position":11,"original_position":11,"commit_id":"ba2b62d7b5b987c8e72729bab0daefa436c2c774","original_commit_id":"ba2b62d7b5b987c8e72729bab0daefa436c2c774","user":{"login":"rgarcia","id":72655,"avatar_url":"https://avatars.githubusercontent.com/u/72655?v=3","gravatar_id":"","url":"https://api.github.com/users/rgarcia","html_url":"https://github.com/rgarcia","followers_url":"https://api.github.com/users/rgarcia/followers","following_url":"https://api.github.com/users/rgarcia/following{/other_user}","gists_url":"https://api.github.com/users/rgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/rgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgarcia/subscriptions","organizations_url":"https://api.github.com/users/rgarcia/orgs","repos_url":"https://api.github.com/users/rgarcia/repos","events_url":"https://api.github.com/users/rgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/rgarcia/received_events","type":"User","site_admin":false},"body":"http://stackoverflow.com/questions/9864662/how-to-get-the-string-length-in-bytes-in-nodejs/9864762#9864762","created_at":"2016-07-29T01:52:22Z","updated_at":"2016-07-29T01:52:22Z","html_url":"https://github.com/Clever/connect-session-encrypt/pull/1#discussion_r72732409","pull_request_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/comments/72732409"},"html":{"href":"https://github.com/Clever/connect-session-encrypt/pull/1#discussion_r72732409"},"pull_request":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1","id":79293350,"html_url":"https://github.com/Clever/connect-session-encrypt/pull/1","diff_url":"https://github.com/Clever/connect-session-encrypt/pull/1.diff","patch_url":"https://github.com/Clever/connect-session-encrypt/pull/1.patch","issue_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/1","number":1,"state":"open","locked":false,"title":"birthday","user":{"login":"azylman","id":790102,"avatar_url":"https://avatars.githubusercontent.com/u/790102?v=3","gravatar_id":"","url":"https://api.github.com/users/azylman","html_url":"https://github.com/azylman","followers_url":"https://api.github.com/users/azylman/followers","following_url":"https://api.github.com/users/azylman/following{/other_user}","gists_url":"https://api.github.com/users/azylman/gists{/gist_id}","starred_url":"https://api.github.com/users/azylman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azylman/subscriptions","organizations_url":"https://api.github.com/users/azylman/orgs","repos_url":"https://api.github.com/users/azylman/repos","events_url":"https://api.github.com/users/azylman/events{/privacy}","received_events_url":"https://api.github.com/users/azylman/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-29T01:13:32Z","updated_at":"2016-07-29T01:52:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df8f86de36a20aa110c341b2f2eb9bb42d71b596","assignee":{"login":"rgarcia","id":72655,"avatar_url":"https://avatars.githubusercontent.com/u/72655?v=3","gravatar_id":"","url":"https://api.github.com/users/rgarcia","html_url":"https://github.com/rgarcia","followers_url":"https://api.github.com/users/rgarcia/followers","following_url":"https://api.github.com/users/rgarcia/following{/other_user}","gists_url":"https://api.github.com/users/rgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/rgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgarcia/subscriptions","organizations_url":"https://api.github.com/users/rgarcia/orgs","repos_url":"https://api.github.com/users/rgarcia/repos","events_url":"https://api.github.com/users/rgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/rgarcia/received_events","type":"User","site_admin":false},"assignees":[{"login":"rgarcia","id":72655,"avatar_url":"https://avatars.githubusercontent.com/u/72655?v=3","gravatar_id":"","url":"https://api.github.com/users/rgarcia","html_url":"https://github.com/rgarcia","followers_url":"https://api.github.com/users/rgarcia/followers","following_url":"https://api.github.com/users/rgarcia/following{/other_user}","gists_url":"https://api.github.com/users/rgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/rgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgarcia/subscriptions","organizations_url":"https://api.github.com/users/rgarcia/orgs","repos_url":"https://api.github.com/users/rgarcia/repos","events_url":"https://api.github.com/users/rgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/rgarcia/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/1/comments","statuses_url":"https://api.github.com/repos/Clever/connect-session-encrypt/statuses/ba2b62d7b5b987c8e72729bab0daefa436c2c774","head":{"label":"Clever:birthday","ref":"birthday","sha":"ba2b62d7b5b987c8e72729bab0daefa436c2c774","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":64437421,"name":"connect-session-encrypt","full_name":"Clever/connect-session-encrypt","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/connect-session-encrypt","description":"connect session store that encrypts the session data. compatible with any backing store (redis, dynamo, etc.)","fork":false,"url":"https://api.github.com/repos/Clever/connect-session-encrypt","forks_url":"https://api.github.com/repos/Clever/connect-session-encrypt/forks","keys_url":"https://api.github.com/repos/Clever/connect-session-encrypt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/connect-session-encrypt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/connect-session-encrypt/teams","hooks_url":"https://api.github.com/repos/Clever/connect-session-encrypt/hooks","issue_events_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/connect-session-encrypt/events","assignees_url":"https://api.github.com/repos/Clever/connect-session-encrypt/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/connect-session-encrypt/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/connect-session-encrypt/tags","blobs_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/connect-session-encrypt/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/connect-session-encrypt/languages","stargazers_url":"https://api.github.com/repos/Clever/connect-session-encrypt/stargazers","contributors_url":"https://api.github.com/repos/Clever/connect-session-encrypt/contributors","subscribers_url":"https://api.github.com/repos/Clever/connect-session-encrypt/subscribers","subscription_url":"https://api.github.com/repos/Clever/connect-session-encrypt/subscription","commits_url":"https://api.github.com/repos/Clever/connect-session-encrypt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/connect-session-encrypt/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/connect-session-encrypt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/connect-session-encrypt/merges","archive_url":"https://api.github.com/repos/Clever/connect-session-encrypt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/connect-session-encrypt/downloads","issues_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/connect-session-encrypt/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/connect-session-encrypt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/connect-session-encrypt/labels{/name}","releases_url":"https://api.github.com/repos/Clever/connect-session-encrypt/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/deployments","created_at":"2016-07-29T00:32:40Z","updated_at":"2016-07-29T00:45:58Z","pushed_at":"2016-07-29T01:13:32Z","git_url":"git://github.com/Clever/connect-session-encrypt.git","ssh_url":"git@github.com:Clever/connect-session-encrypt.git","clone_url":"https://github.com/Clever/connect-session-encrypt.git","svn_url":"https://github.com/Clever/connect-session-encrypt","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Clever:master","ref":"master","sha":"cfaff06f62eca0b88ff42c57510d6509f046917c","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":64437421,"name":"connect-session-encrypt","full_name":"Clever/connect-session-encrypt","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/connect-session-encrypt","description":"connect session store that encrypts the session data. compatible with any backing store (redis, dynamo, etc.)","fork":false,"url":"https://api.github.com/repos/Clever/connect-session-encrypt","forks_url":"https://api.github.com/repos/Clever/connect-session-encrypt/forks","keys_url":"https://api.github.com/repos/Clever/connect-session-encrypt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/connect-session-encrypt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/connect-session-encrypt/teams","hooks_url":"https://api.github.com/repos/Clever/connect-session-encrypt/hooks","issue_events_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/connect-session-encrypt/events","assignees_url":"https://api.github.com/repos/Clever/connect-session-encrypt/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/connect-session-encrypt/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/connect-session-encrypt/tags","blobs_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/connect-session-encrypt/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/connect-session-encrypt/languages","stargazers_url":"https://api.github.com/repos/Clever/connect-session-encrypt/stargazers","contributors_url":"https://api.github.com/repos/Clever/connect-session-encrypt/contributors","subscribers_url":"https://api.github.com/repos/Clever/connect-session-encrypt/subscribers","subscription_url":"https://api.github.com/repos/Clever/connect-session-encrypt/subscription","commits_url":"https://api.github.com/repos/Clever/connect-session-encrypt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/connect-session-encrypt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/connect-session-encrypt/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/connect-session-encrypt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/connect-session-encrypt/merges","archive_url":"https://api.github.com/repos/Clever/connect-session-encrypt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/connect-session-encrypt/downloads","issues_url":"https://api.github.com/repos/Clever/connect-session-encrypt/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/connect-session-encrypt/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/connect-session-encrypt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/connect-session-encrypt/labels{/name}","releases_url":"https://api.github.com/repos/Clever/connect-session-encrypt/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/connect-session-encrypt/deployments","created_at":"2016-07-29T00:32:40Z","updated_at":"2016-07-29T00:45:58Z","pushed_at":"2016-07-29T01:13:32Z","git_url":"git://github.com/Clever/connect-session-encrypt.git","ssh_url":"git@github.com:Clever/connect-session-encrypt.git","clone_url":"https://github.com/Clever/connect-session-encrypt.git","svn_url":"https://github.com/Clever/connect-session-encrypt","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1"},"html":{"href":"https://github.com/Clever/connect-session-encrypt/pull/1"},"issue":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/1"},"comments":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Clever/connect-session-encrypt/statuses/ba2b62d7b5b987c8e72729bab0daefa436c2c774"}}}}
{"actor":{"display_login":"rgarcia"}}