aes - How to assign NSString directly to NSMutableData -


Iq is developing an application including SQL databases. I want to encrypt and decrypt the data inside a database using AES encryption. I have successfully implimented AES encryption and encrypted data into the database. And bringing data into NSSTING So how can I specify that string by changing the string value to no NSMutableData. Because I want to pass that data through the AES decrypt method. Please help me people. This is an important job ..

Thanks in advance

Here is some example of NSString & lt; - & gt; NSData Conversion: NSString * someString = @ "string"; // NSString to NSData NSData * Data = [Some String Data Wrapping Encoding: [NSString defaultCStringEncoding]]; // NSString to NSData someString = [[NSString alloc] initWithData: Data encoding: [NSString defaultCStringEncoding]]; NSLog (@ "% @", some strings);

Comments