{"action":"created","issue":{"url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/15","labels_url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/15/comments","events_url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/15/events","html_url":"https://github.com/Pakhee/Cross-platform-AES-encryption/issues/15","id":88685998,"number":15,"title":"Getting decrypted data using CryptLib ","user":{"login":"manishmundra3","id":3601887,"avatar_url":"https://avatars.githubusercontent.com/u/3601887?v=3","gravatar_id":"","url":"https://api.github.com/users/manishmundra3","html_url":"https://github.com/manishmundra3","followers_url":"https://api.github.com/users/manishmundra3/followers","following_url":"https://api.github.com/users/manishmundra3/following{/other_user}","gists_url":"https://api.github.com/users/manishmundra3/gists{/gist_id}","starred_url":"https://api.github.com/users/manishmundra3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishmundra3/subscriptions","organizations_url":"https://api.github.com/users/manishmundra3/orgs","repos_url":"https://api.github.com/users/manishmundra3/repos","events_url":"https://api.github.com/users/manishmundra3/events{/privacy}","received_events_url":"https://api.github.com/users/manishmundra3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T10:25:19Z","updated_at":"2015-06-17T04:26:35Z","closed_at":null,"body":"// My testing string is \"This is test Encryption String Two\"\r\n\r\nNSString *str=[[NSBundle mainBundle] pathForResource:@\"data\" ofType:@\"rtf\"];\r\nNSData *data = [NSData dataWithContentsOfFile:str];\r\n\r\nNSString *iv = @\"VFSGlobalApp\";\r\nNSString *key = [[CryptLib alloc]sha256:@\"VFSGlobalApp\" length:31];//getHashSha256(@\"VFSGlobalApp\", 31); //32 bytes\r\n\r\nNSData *dataencrypt = [[CryptLib alloc]encrypt:data key:key iv:iv];\r\nNSData *base64 = [dataencrypt base64EncodedDataWithOptions:0];\r\nNSString *sBase64 = [[NSString alloc] initWithData:base64 encoding:NSUTF8StringEncoding];\r\nNSLog(@\"Base64 String: %@\",sBase64);\r\n\r\nNSData *datadecrypt = [[CryptLib alloc]decrypt:dataencrypt key:key iv:iv];\r\nNSString *sDecrypt = [[NSString alloc] initWithData:datadecrypt encoding:NSUTF8StringEncoding];\r\nNSLog(@\"Decrypted Data: %@\",sDecrypt);\r\n\r\n***********************\r\nDecrypted Data: {\\rtf1\\ansi\\ansicpg1252\\cocoartf1347\\cocoasubrtf570\r\n{\\fonttbl\\f0\\fmodern\\fcharset0 CourierNewPSMT;\\f1\\froman\\fcharset0 TimesNewRomanPSMT;}\r\n{\\colortbl;\\red255\\green255\\blue255;\\red163\\green21\\blue21;}\r\n\\margl1440\\margr1440\\vieww9000\\viewh8400\\viewkind0\r\n\\deftab720\r\n\\pard\\pardeftab720\r\n\r\n\\f0\\fs20 \\cf2 This is test Encryption String Two\r\n\\f1\\fs24 \\cf0 \\\r\n}\r\n*******************\r\nPlease help me out."},"comment":{"url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/comments/112649328","html_url":"https://github.com/Pakhee/Cross-platform-AES-encryption/issues/15#issuecomment-112649328","issue_url":"https://api.github.com/repos/Pakhee/Cross-platform-AES-encryption/issues/15","id":112649328,"user":{"login":"navneet83","id":4686373,"avatar_url":"https://avatars.githubusercontent.com/u/4686373?v=3","gravatar_id":"","url":"https://api.github.com/users/navneet83","html_url":"https://github.com/navneet83","followers_url":"https://api.github.com/users/navneet83/followers","following_url":"https://api.github.com/users/navneet83/following{/other_user}","gists_url":"https://api.github.com/users/navneet83/gists{/gist_id}","starred_url":"https://api.github.com/users/navneet83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navneet83/subscriptions","organizations_url":"https://api.github.com/users/navneet83/orgs","repos_url":"https://api.github.com/users/navneet83/repos","events_url":"https://api.github.com/users/navneet83/events{/privacy}","received_events_url":"https://api.github.com/users/navneet83/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T04:26:35Z","updated_at":"2015-06-17T04:26:35Z","body":"Did you read my previous comment and implement changes accordingly ? "}}