{"action":"created","issue":{"url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/87","labels_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/87/comments","events_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/87/events","html_url":"https://github.com/krzyzanowskim/CryptoSwift/issues/87","id":91464446,"number":87,"title":"NSData wrong values on hexString","user":{"login":"ed-mejia","id":7431094,"avatar_url":"https://avatars.githubusercontent.com/u/7431094?v=3","gravatar_id":"","url":"https://api.github.com/users/ed-mejia","html_url":"https://github.com/ed-mejia","followers_url":"https://api.github.com/users/ed-mejia/followers","following_url":"https://api.github.com/users/ed-mejia/following{/other_user}","gists_url":"https://api.github.com/users/ed-mejia/gists{/gist_id}","starred_url":"https://api.github.com/users/ed-mejia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ed-mejia/subscriptions","organizations_url":"https://api.github.com/users/ed-mejia/orgs","repos_url":"https://api.github.com/users/ed-mejia/repos","events_url":"https://api.github.com/users/ed-mejia/events{/privacy}","received_events_url":"https://api.github.com/users/ed-mejia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/labels/not%20a%20bug","name":"not a bug","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-27T13:29:29Z","updated_at":"2015-06-30T06:33:31Z","closed_at":"2015-06-28T10:28:12Z","body":"Hi I'm doing this:\r\n\r\nvar imageData = UIImageJPEGRepresentation(image, 1)\r\nif let hash = imageData.md5() {\r\nfileName = hash.hexString.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet())+\".jpg\"\r\n}\r\n\r\nfileName output is : \"1e b4 2f ae 03 ab 3c 40 aa 74 b2 81 a2 23 31 0e.jpg\"\r\n\r\nBut I think this should be \"1eb42fae03ab3c40aa74b281a223310e.jpg\"\r\n\r\nWhat I'm doing wrong?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/comments/117015695","html_url":"https://github.com/krzyzanowskim/CryptoSwift/issues/87#issuecomment-117015695","issue_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/87","id":117015695,"user":{"login":"ed-mejia","id":7431094,"avatar_url":"https://avatars.githubusercontent.com/u/7431094?v=3","gravatar_id":"","url":"https://api.github.com/users/ed-mejia","html_url":"https://github.com/ed-mejia","followers_url":"https://api.github.com/users/ed-mejia/followers","following_url":"https://api.github.com/users/ed-mejia/following{/other_user}","gists_url":"https://api.github.com/users/ed-mejia/gists{/gist_id}","starred_url":"https://api.github.com/users/ed-mejia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ed-mejia/subscriptions","organizations_url":"https://api.github.com/users/ed-mejia/orgs","repos_url":"https://api.github.com/users/ed-mejia/repos","events_url":"https://api.github.com/users/ed-mejia/events{/privacy}","received_events_url":"https://api.github.com/users/ed-mejia/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T06:33:31Z","updated_at":"2015-06-30T06:33:31Z","body":"Hey @njovy  thanks mate, I will try that :)"}}