{"action":"opened","issue":{"url":"https://api.github.com/repos/ricmoo/aes-js/issues/42","repository_url":"https://api.github.com/repos/ricmoo/aes-js","labels_url":"https://api.github.com/repos/ricmoo/aes-js/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/ricmoo/aes-js/issues/42/comments","events_url":"https://api.github.com/repos/ricmoo/aes-js/issues/42/events","html_url":"https://github.com/ricmoo/aes-js/issues/42","id":261516334,"number":42,"title":"Can I read a file than decrypt it?","user":{"login":"ErrolLin","id":6948593,"avatar_url":"https://avatars0.githubusercontent.com/u/6948593?v=4","gravatar_id":"","url":"https://api.github.com/users/ErrolLin","html_url":"https://github.com/ErrolLin","followers_url":"https://api.github.com/users/ErrolLin/followers","following_url":"https://api.github.com/users/ErrolLin/following{/other_user}","gists_url":"https://api.github.com/users/ErrolLin/gists{/gist_id}","starred_url":"https://api.github.com/users/ErrolLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErrolLin/subscriptions","organizations_url":"https://api.github.com/users/ErrolLin/orgs","repos_url":"https://api.github.com/users/ErrolLin/repos","events_url":"https://api.github.com/users/ErrolLin/events{/privacy}","received_events_url":"https://api.github.com/users/ErrolLin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-29T02:44:21Z","updated_at":"2017-09-29T02:44:21Z","closed_at":null,"author_association":"NONE","body":"I need to decrypt a file.\r\n\r\nI read a video file as a string.\r\n\r\nDo I need to turn it base64 or other formats?\r\n\r\n```\r\n    var key = aesjs.utils.utf8.toBytes('qe$sg#oin*@Znm*X');\r\n    var textBytes = aesjs.utils.utf8.toBytes(datastr);\r\n    var aesEcb = new aesjs.ModeOfOperation.ecb(key);\r\n    var decryptedBytes = aesEcb.decrypt(textBytes);\r\n    var decryptedText = aesjs.utils.utf8.fromBytes(decryptedBytes);\r\n    console.log(decryptedText);\r\n```"}}
{"actor":{"display_login":"ErrolLin"}}