{"action":"created","issue":{"url":"https://api.github.com/repos/rzcoder/node-rsa/issues/25","labels_url":"https://api.github.com/repos/rzcoder/node-rsa/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/rzcoder/node-rsa/issues/25/comments","events_url":"https://api.github.com/repos/rzcoder/node-rsa/issues/25/events","html_url":"https://github.com/rzcoder/node-rsa/issues/25","id":53293333,"number":25,"title":"browserified node-rsa raise \"TypeError: Object #<Sha1> has no method 'write' \" running in browser","user":{"login":"mustapha-wang","id":9651166,"avatar_url":"https://avatars.githubusercontent.com/u/9651166?v=3","gravatar_id":"","url":"https://api.github.com/users/mustapha-wang","html_url":"https://github.com/mustapha-wang","followers_url":"https://api.github.com/users/mustapha-wang/followers","following_url":"https://api.github.com/users/mustapha-wang/following{/other_user}","gists_url":"https://api.github.com/users/mustapha-wang/gists{/gist_id}","starred_url":"https://api.github.com/users/mustapha-wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustapha-wang/subscriptions","organizations_url":"https://api.github.com/users/mustapha-wang/orgs","repos_url":"https://api.github.com/users/mustapha-wang/repos","events_url":"https://api.github.com/users/mustapha-wang/events{/privacy}","received_events_url":"https://api.github.com/users/mustapha-wang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-03T03:59:31Z","updated_at":"2015-01-03T10:37:50Z","closed_at":null,"body":"I use \"browserify ./Node-RSA.js > rsa.js\",then use rsa.js in chrome:\r\n\r\nvar NodeRSA = require('./NodeRSA.js');\r\nvar encoder = new NodeRSA(publicKey);\r\nencoder.encrypt(str, \"base64\", \"utf8\");\r\n\r\nI got a Error:TypeError: Object #<Sha1> has no method 'write'"},"comment":{"url":"https://api.github.com/repos/rzcoder/node-rsa/issues/comments/68590396","html_url":"https://github.com/rzcoder/node-rsa/issues/25#issuecomment-68590396","issue_url":"https://api.github.com/repos/rzcoder/node-rsa/issues/25","id":68590396,"user":{"login":"rzcoder","id":1993554,"avatar_url":"https://avatars.githubusercontent.com/u/1993554?v=3","gravatar_id":"","url":"https://api.github.com/users/rzcoder","html_url":"https://github.com/rzcoder","followers_url":"https://api.github.com/users/rzcoder/followers","following_url":"https://api.github.com/users/rzcoder/following{/other_user}","gists_url":"https://api.github.com/users/rzcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/rzcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzcoder/subscriptions","organizations_url":"https://api.github.com/users/rzcoder/orgs","repos_url":"https://api.github.com/users/rzcoder/repos","events_url":"https://api.github.com/users/rzcoder/events{/privacy}","received_events_url":"https://api.github.com/users/rzcoder/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T10:37:49Z","updated_at":"2015-01-03T10:37:49Z","body":"Can you post your rsa.js somewhere?"}}