{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/290","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/290/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/290/events","html_url":"https://github.com/ethereum/web3.js/issues/290","id":100195394,"number":290,"title":"web3.sha3 cannot handle bytes of value larger than 0x7f","user":{"login":"chriseth","id":9073706,"avatar_url":"https://avatars.githubusercontent.com/u/9073706?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseth","html_url":"https://github.com/chriseth","followers_url":"https://api.github.com/users/chriseth/followers","following_url":"https://api.github.com/users/chriseth/following{/other_user}","gists_url":"https://api.github.com/users/chriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseth/subscriptions","organizations_url":"https://api.github.com/users/chriseth/orgs","repos_url":"https://api.github.com/users/chriseth/repos","events_url":"https://api.github.com/users/chriseth/events{/privacy}","received_events_url":"https://api.github.com/users/chriseth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/web3.js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T00:11:51Z","updated_at":"2015-08-11T00:19:18Z","closed_at":null,"body":"`web3.sha3('0x80', true)` should return\r\n`56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421`\r\nbut it actually returns\r\n`6b03a5eef7706e3fb52a61c19ab1122fad7237726601ac665bd4def888f0e4a0`\r\n\r\nFurthermore, `web3.sha3(String.fromCharCode(0x80))` returns\r\n`0f50dcb7f76b82d3cf8c843adacd5cb4d1ce1b6de2ef1f2557f196d07c26f08e`\r\nwhich is not correct either."},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/129654799","html_url":"https://github.com/ethereum/web3.js/issues/290#issuecomment-129654799","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/290","id":129654799,"user":{"login":"chriseth","id":9073706,"avatar_url":"https://avatars.githubusercontent.com/u/9073706?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseth","html_url":"https://github.com/chriseth","followers_url":"https://api.github.com/users/chriseth/followers","following_url":"https://api.github.com/users/chriseth/following{/other_user}","gists_url":"https://api.github.com/users/chriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseth/subscriptions","organizations_url":"https://api.github.com/users/chriseth/orgs","repos_url":"https://api.github.com/users/chriseth/repos","events_url":"https://api.github.com/users/chriseth/events{/privacy}","received_events_url":"https://api.github.com/users/chriseth/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T00:19:17Z","updated_at":"2015-08-11T00:19:17Z","body":"It is probably a good idea to use crypto-js's WordArray when passing the data over to crypto-js.\r\n\r\nFurthermore, I would really appreciate a solution which is correct in 100% of the cases. With the current implementation, it is impossible to compute the sha3 hash of any string that starts with `\"0x\"`."}}