{"action":"created","issue":{"url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/66","labels_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/66/comments","events_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/66/events","html_url":"https://github.com/krzyzanowskim/CryptoSwift/issues/66","id":76666925,"number":66,"title":"Same encryption with android, ios and php","user":{"login":"sinanerkan86","id":6575758,"avatar_url":"https://avatars.githubusercontent.com/u/6575758?v=3","gravatar_id":"","url":"https://api.github.com/users/sinanerkan86","html_url":"https://github.com/sinanerkan86","followers_url":"https://api.github.com/users/sinanerkan86/followers","following_url":"https://api.github.com/users/sinanerkan86/following{/other_user}","gists_url":"https://api.github.com/users/sinanerkan86/gists{/gist_id}","starred_url":"https://api.github.com/users/sinanerkan86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinanerkan86/subscriptions","organizations_url":"https://api.github.com/users/sinanerkan86/orgs","repos_url":"https://api.github.com/users/sinanerkan86/repos","events_url":"https://api.github.com/users/sinanerkan86/events{/privacy}","received_events_url":"https://api.github.com/users/sinanerkan86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T09:31:46Z","updated_at":"2015-05-15T09:34:41Z","closed_at":null,"body":"Hi. \r\nI have a code on Android and it encrypt string with secret key and iv. \r\nFor example asd@asd.com encrypted state is= 975eff7ef2b882bb9b37014ccd10bb0e\r\nI sent this to php and it decrypt it and make sql query as asd@asd.com.\r\nI have to do this on ios. But I can't get the same result with this library. Where can I make mistakes.\r\nAndroid Code is: \r\ncipher.init(Cipher.ENCRYPT_MODE, secretkeySpec, ivParameterSpec);\r\nbyte[] encrypted = cipher.doFinal(padString(textToBeEncrypted).getBytes());\r\n\r\nand i convert in to string.\r\n\r\nI have to do same on ios. \r\nthanks"},"comment":{"url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/comments/102343285","html_url":"https://github.com/krzyzanowskim/CryptoSwift/issues/66#issuecomment-102343285","issue_url":"https://api.github.com/repos/krzyzanowskim/CryptoSwift/issues/66","id":102343285,"user":{"login":"krzyzanowskim","id":758033,"avatar_url":"https://avatars.githubusercontent.com/u/758033?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyzanowskim","html_url":"https://github.com/krzyzanowskim","followers_url":"https://api.github.com/users/krzyzanowskim/followers","following_url":"https://api.github.com/users/krzyzanowskim/following{/other_user}","gists_url":"https://api.github.com/users/krzyzanowskim/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyzanowskim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyzanowskim/subscriptions","organizations_url":"https://api.github.com/users/krzyzanowskim/orgs","repos_url":"https://api.github.com/users/krzyzanowskim/repos","events_url":"https://api.github.com/users/krzyzanowskim/events{/privacy}","received_events_url":"https://api.github.com/users/krzyzanowskim/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T09:34:41Z","updated_at":"2015-05-15T09:34:41Z","body":"Are you sure you pass the same key and IV values to the function ? To reproduce issue you have to pass key and IV here with the code you use it."}}