i have a working code below in objective-c for encrypting an NSString.
NSString *password = @"mypassword";
NSString *str = @"hello world 123";
NSLog(@"encrypting string = %@",str);
NSData *data = [str dataUsingEncoding: NSASCIIStringEncoding];
NSData *encryptedData = [data AESEncryptWithPassphrase:password];
[Base64 initialize];
NSString *b64EncStr = [Base64 encode:encryptedData];
NSLog(@"Base 64 encoded = %@",b64EncStr);
what i want is to send the encrypted text to java and decrypt it. can someone guide me with the java code.