{"action":"created","issue":{"url":"https://api.github.com/repos/digitalbazaar/forge/issues/628","repository_url":"https://api.github.com/repos/digitalbazaar/forge","labels_url":"https://api.github.com/repos/digitalbazaar/forge/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/digitalbazaar/forge/issues/628/comments","events_url":"https://api.github.com/repos/digitalbazaar/forge/issues/628/events","html_url":"https://github.com/digitalbazaar/forge/issues/628","id":383380452,"node_id":"MDU6SXNzdWUzODMzODA0NTI=","number":628,"title":"3DES-ECB encryption doesn't return any thing","user":{"login":"smemamian","id":2825656,"node_id":"MDQ6VXNlcjI4MjU2NTY=","avatar_url":"https://avatars1.githubusercontent.com/u/2825656?v=4","gravatar_id":"","url":"https://api.github.com/users/smemamian","html_url":"https://github.com/smemamian","followers_url":"https://api.github.com/users/smemamian/followers","following_url":"https://api.github.com/users/smemamian/following{/other_user}","gists_url":"https://api.github.com/users/smemamian/gists{/gist_id}","starred_url":"https://api.github.com/users/smemamian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smemamian/subscriptions","organizations_url":"https://api.github.com/users/smemamian/orgs","repos_url":"https://api.github.com/users/smemamian/repos","events_url":"https://api.github.com/users/smemamian/events{/privacy}","received_events_url":"https://api.github.com/users/smemamian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-22T04:54:48Z","updated_at":"2018-12-16T01:52:36Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nthis is my code:\r\n\r\n```\r\n    console.log('enc', enc())\r\n    function enc() {\r\n        var md = forge.md.md5.create();\r\n        md.update('a');\r\n\r\n        var key = md.digest().getBytes();\r\n        \r\n        //3DES-ECB requires 24byte of data and key returned from md5 is 16byte\r\n        var k1 = key.substring(0, 8);\r\n        var key1 = key + key1;\r\n       \r\n\r\n        var input = forge.util.createBuffer(forge.util.decode64('Yg=='));\r\n        var decTer = forge.cipher.createDecipher('3DES-ECB', \"40edae4bad0e5bf6d6c2dc56\");\r\n        decTer.start();\r\n        decTer.update(input);\r\n        \r\n        console.log('decTer.output.getBytes()',decTer.output.getBytes().toString())\r\n        return decTer.output.getBytes();\r\n    }\r\n```\r\n\r\nbut it doesn't return anything. "},"comment":{"url":"https://api.github.com/repos/digitalbazaar/forge/issues/comments/447611462","html_url":"https://github.com/digitalbazaar/forge/issues/628#issuecomment-447611462","issue_url":"https://api.github.com/repos/digitalbazaar/forge/issues/628","id":447611462,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzYxMTQ2Mg==","user":{"login":"andersk","id":26471,"node_id":"MDQ6VXNlcjI2NDcx","avatar_url":"https://avatars0.githubusercontent.com/u/26471?v=4","gravatar_id":"","url":"https://api.github.com/users/andersk","html_url":"https://github.com/andersk","followers_url":"https://api.github.com/users/andersk/followers","following_url":"https://api.github.com/users/andersk/following{/other_user}","gists_url":"https://api.github.com/users/andersk/gists{/gist_id}","starred_url":"https://api.github.com/users/andersk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersk/subscriptions","organizations_url":"https://api.github.com/users/andersk/orgs","repos_url":"https://api.github.com/users/andersk/repos","events_url":"https://api.github.com/users/andersk/events{/privacy}","received_events_url":"https://api.github.com/users/andersk/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T01:52:36Z","updated_at":"2018-12-16T01:52:36Z","author_association":"CONTRIBUTOR","body":"You forgot to call `decTer.finish()`, which in this case returns `false` because your input has invalid padding."}}
{"actor":{"display_login":"andersk"}}