OSX AES Encryption is not working
问题 In my application, i need to encrypt the file before sending it over the network and on the other end, it will get decrypt, This is my code, -(void)doEncryptTest:(NSString *)pFileName{ // read the NSData; NSStringEncoding encoding =NSUTF8StringEncoding; NSString *pFileContent = @"xaaaaaaxxaaaaaax"; NSString *pKey = @"01234567012345670123456701234567"; NSData *pData = [pFileContent dataUsingEncoding:encoding]; NSData *pEncryptedData = [pData AES256EncryptWithKey:pKey]; NSData *decrypted=