{"action":"closed","issue":{"url":"https://api.github.com/repos/tugrul/node-mcrypt/issues/15","labels_url":"https://api.github.com/repos/tugrul/node-mcrypt/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/tugrul/node-mcrypt/issues/15/comments","events_url":"https://api.github.com/repos/tugrul/node-mcrypt/issues/15/events","html_url":"https://github.com/tugrul/node-mcrypt/issues/15","id":56037686,"number":15,"title":"The encrypt result is not equal between 0.0.7 and 0.0.10","user":{"login":"iammapping","id":3699795,"avatar_url":"https://avatars.githubusercontent.com/u/3699795?v=3","gravatar_id":"","url":"https://api.github.com/users/iammapping","html_url":"https://github.com/iammapping","followers_url":"https://api.github.com/users/iammapping/followers","following_url":"https://api.github.com/users/iammapping/following{/other_user}","gists_url":"https://api.github.com/users/iammapping/gists{/gist_id}","starred_url":"https://api.github.com/users/iammapping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iammapping/subscriptions","organizations_url":"https://api.github.com/users/iammapping/orgs","repos_url":"https://api.github.com/users/iammapping/repos","events_url":"https://api.github.com/users/iammapping/events{/privacy}","received_events_url":"https://api.github.com/users/iammapping/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T14:12:49Z","updated_at":"2015-01-31T14:27:41Z","closed_at":"2015-01-31T14:27:41Z","body":"When I updated mcrypt module to 0.0.10 today, I found the result of encrypt with `rijndael-128` and`cbc` going wrong.\r\n\r\nThe test code :\r\n```javascript\r\nvar MCrypt = require('mcrypt').MCrypt;\r\nvar rijndael = new MCrypt('rijndael-128', 'cbc');\r\nrijndael.open('aaaabbbbccccdddd');\r\n\r\n// 0.0.7 output: \r\n// 8cc419b7cb0f744dbada17858ea84d00 \r\n// Correct! equals with php mcrypt module\r\n// but 0.0.10 output: \r\n// b2af83d35ab9b920bcdbb3ae1425f454\r\nconsole.log(rijndael.encrypt('123456').toString('hex'));\r\n```"}}