{"action":"created","issue":{"url":"https://api.github.com/repos/mac-/hash-files/issues/4","repository_url":"https://api.github.com/repos/mac-/hash-files","labels_url":"https://api.github.com/repos/mac-/hash-files/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mac-/hash-files/issues/4/comments","events_url":"https://api.github.com/repos/mac-/hash-files/issues/4/events","html_url":"https://github.com/mac-/hash-files/issues/4","id":159281085,"number":4,"title":"Concatenating files can generate same hash?","user":{"login":"silhouettes","id":696206,"avatar_url":"https://avatars.githubusercontent.com/u/696206?v=3","gravatar_id":"","url":"https://api.github.com/users/silhouettes","html_url":"https://github.com/silhouettes","followers_url":"https://api.github.com/users/silhouettes/followers","following_url":"https://api.github.com/users/silhouettes/following{/other_user}","gists_url":"https://api.github.com/users/silhouettes/gists{/gist_id}","starred_url":"https://api.github.com/users/silhouettes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silhouettes/subscriptions","organizations_url":"https://api.github.com/users/silhouettes/orgs","repos_url":"https://api.github.com/users/silhouettes/repos","events_url":"https://api.github.com/users/silhouettes/events{/privacy}","received_events_url":"https://api.github.com/users/silhouettes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-08T21:47:07Z","updated_at":"2016-06-21T00:17:41Z","closed_at":null,"body":"As far as I understand, this works by concatenating all of the files together and then hashing the result. Does this mean that we can get the same hash when hashing this:\r\n\r\nFile 1: 00 01 02\r\nFile 2: 03 04 05\r\n\r\nAs well as this?\r\n\r\nFile 1: 00 01 02 03\r\nFile 2: 04 05"},"comment":{"url":"https://api.github.com/repos/mac-/hash-files/issues/comments/227307362","html_url":"https://github.com/mac-/hash-files/issues/4#issuecomment-227307362","issue_url":"https://api.github.com/repos/mac-/hash-files/issues/4","id":227307362,"user":{"login":"silhouettes","id":696206,"avatar_url":"https://avatars.githubusercontent.com/u/696206?v=3","gravatar_id":"","url":"https://api.github.com/users/silhouettes","html_url":"https://github.com/silhouettes","followers_url":"https://api.github.com/users/silhouettes/followers","following_url":"https://api.github.com/users/silhouettes/following{/other_user}","gists_url":"https://api.github.com/users/silhouettes/gists{/gist_id}","starred_url":"https://api.github.com/users/silhouettes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silhouettes/subscriptions","organizations_url":"https://api.github.com/users/silhouettes/orgs","repos_url":"https://api.github.com/users/silhouettes/repos","events_url":"https://api.github.com/users/silhouettes/events{/privacy}","received_events_url":"https://api.github.com/users/silhouettes/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T00:17:41Z","updated_at":"2016-06-21T00:17:41Z","body":"Oh, just another thing to note, I'm not sure how important this is to you, but this hashing algorithm also doesn't seem to factor in the names of the files. So if a file got renamed from `a.js` to `aa.js`, the hash would still come out the same."}}
{"actor":{"display_login":"silhouettes"}}