{"action":"created","issue":{"url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/14","repository_url":"https://api.github.com/repos/kokke/tiny-AES128-C","labels_url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/14/comments","events_url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/14/events","html_url":"https://github.com/kokke/tiny-AES128-C/issues/14","id":58394055,"number":14,"title":"Encrypt string with dash will decrypt badly","user":{"login":"xArthasx","id":422970,"avatar_url":"https://avatars.githubusercontent.com/u/422970?v=3","gravatar_id":"","url":"https://api.github.com/users/xArthasx","html_url":"https://github.com/xArthasx","followers_url":"https://api.github.com/users/xArthasx/followers","following_url":"https://api.github.com/users/xArthasx/following{/other_user}","gists_url":"https://api.github.com/users/xArthasx/gists{/gist_id}","starred_url":"https://api.github.com/users/xArthasx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xArthasx/subscriptions","organizations_url":"https://api.github.com/users/xArthasx/orgs","repos_url":"https://api.github.com/users/xArthasx/repos","events_url":"https://api.github.com/users/xArthasx/events{/privacy}","received_events_url":"https://api.github.com/users/xArthasx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T18:48:52Z","updated_at":"2016-06-15T18:41:42Z","closed_at":"2016-06-15T18:41:42Z","body":"I think it's the dashes.\r\n\r\n\tuint8_t input[17] = \"2014-02-20 13:27\";\r\n\t// strftime((char*)input, sizeof(input), \"%Y-%m-%d %H %M\", &tstruct);\r\n\tstd::cout << input<<\"\\n\";\r\n\tuint8_t output[ sizeof(input) +16];\r\n\tAES128_ECB_encrypt(input, key, output);\r\n\tsize_t size = sizeof(output);\r\n\tuint8_t decrypted[17];\r\n\tAES128_ECB_decrypt(output, key, decrypted);\r\n\tstd::cout << decrypted<< \"\\n\";\r\nWill output:\r\n![image](https://cloud.githubusercontent.com/assets/422970/6307088/0d850094-b907-11e4-8e9e-61a6e901356f.png)"},"comment":{"url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/comments/226281188","html_url":"https://github.com/kokke/tiny-AES128-C/issues/14#issuecomment-226281188","issue_url":"https://api.github.com/repos/kokke/tiny-AES128-C/issues/14","id":226281188,"user":{"login":"kokke","id":1774646,"avatar_url":"https://avatars.githubusercontent.com/u/1774646?v=3","gravatar_id":"","url":"https://api.github.com/users/kokke","html_url":"https://github.com/kokke","followers_url":"https://api.github.com/users/kokke/followers","following_url":"https://api.github.com/users/kokke/following{/other_user}","gists_url":"https://api.github.com/users/kokke/gists{/gist_id}","starred_url":"https://api.github.com/users/kokke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokke/subscriptions","organizations_url":"https://api.github.com/users/kokke/orgs","repos_url":"https://api.github.com/users/kokke/repos","events_url":"https://api.github.com/users/kokke/events{/privacy}","received_events_url":"https://api.github.com/users/kokke/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T18:41:42Z","updated_at":"2016-06-15T18:41:42Z","body":"Thank you @reattiva for solving this issue :)"}}
{"actor":{"display_login":"kokke"}}