{"action":"created","issue":{"url":"https://api.github.com/repos/brix/crypto-js/issues/135","repository_url":"https://api.github.com/repos/brix/crypto-js","labels_url":"https://api.github.com/repos/brix/crypto-js/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/brix/crypto-js/issues/135/comments","events_url":"https://api.github.com/repos/brix/crypto-js/issues/135/events","html_url":"https://github.com/brix/crypto-js/issues/135","id":279612855,"number":135,"title":"How to AES encrypt with php and AES decrypt with javascript?","user":{"login":"sn01615","id":7794149,"avatar_url":"https://avatars3.githubusercontent.com/u/7794149?v=4","gravatar_id":"","url":"https://api.github.com/users/sn01615","html_url":"https://github.com/sn01615","followers_url":"https://api.github.com/users/sn01615/followers","following_url":"https://api.github.com/users/sn01615/following{/other_user}","gists_url":"https://api.github.com/users/sn01615/gists{/gist_id}","starred_url":"https://api.github.com/users/sn01615/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sn01615/subscriptions","organizations_url":"https://api.github.com/users/sn01615/orgs","repos_url":"https://api.github.com/users/sn01615/repos","events_url":"https://api.github.com/users/sn01615/events{/privacy}","received_events_url":"https://api.github.com/users/sn01615/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-06T03:21:49Z","updated_at":"2018-02-23T21:58:35Z","closed_at":null,"author_association":"NONE","body":"php code\r\n```php\r\n$pass = '123456';\r\n$method = 'aes128';\r\n$iv = '4f01bede9221586c';\r\n$enc_data = openssl_encrypt('Message', $method, $pass, null, $iv);\r\necho $enc_data;\r\n# response 8duGzD85Y2S3bU1h2Hu5ew==\r\n```\r\n\r\njavascript code\r\n```javascript\r\nvar bytes  = CryptoJS.AES.decrypt('8duGzD85Y2S3bU1h2Hu5ew==', '123456');\r\nvar plaintext = bytes.toString(CryptoJS.enc.Utf8);\r\n\r\nconsole.log(plaintext);\r\n// response empty\r\n```"},"comment":{"url":"https://api.github.com/repos/brix/crypto-js/issues/comments/368150438","html_url":"https://github.com/brix/crypto-js/issues/135#issuecomment-368150438","issue_url":"https://api.github.com/repos/brix/crypto-js/issues/135","id":368150438,"user":{"login":"DanBeard","id":5148750,"avatar_url":"https://avatars3.githubusercontent.com/u/5148750?v=4","gravatar_id":"","url":"https://api.github.com/users/DanBeard","html_url":"https://github.com/DanBeard","followers_url":"https://api.github.com/users/DanBeard/followers","following_url":"https://api.github.com/users/DanBeard/following{/other_user}","gists_url":"https://api.github.com/users/DanBeard/gists{/gist_id}","starred_url":"https://api.github.com/users/DanBeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanBeard/subscriptions","organizations_url":"https://api.github.com/users/DanBeard/orgs","repos_url":"https://api.github.com/users/DanBeard/repos","events_url":"https://api.github.com/users/DanBeard/events{/privacy}","received_events_url":"https://api.github.com/users/DanBeard/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T21:58:35Z","updated_at":"2018-02-23T21:58:35Z","author_association":"NONE","body":"Thanks @Sk3pper - misnamed variable. Somehow a semicolon snuck in there and I forgot to import b64encode. I wonder how I got that snippet to work on my machine in the first place!"}}
{"actor":{"display_login":"DanBeard"}}