Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6563671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:52:39+00:00 2026-05-25T13:52:39+00:00

Excuse me if this is a question that has been asked before, if so

  • 0

Excuse me if this is a question that has been asked before, if so point me to the right answer.(i couldn’t find the answer.)

My Question’s:

I have an XML coming in from a NSUrl i need to be able to parse it appropriately,
i will be receiving the responses with Field Perpetrators in them such as ().

Could i have it set up to search a dictionary for Keywords and parse them from the XML?
If so what would be a good start on learning that?

Also is it possible to save the response’s and encrypt them until i need to use them in another view?
if so, what is the best way to encrypt on the IOS side?

any guide in the right direction is wonderful!!
I’m not asking for someone to answer all of them but it would be nice, thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:52:39+00:00Added an answer on May 25, 2026 at 1:52 pm

    The method - (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)mask error:(NSError **)errorPtr
    has NSDataWritingFileProtection options that will encrypt the data for you but you have no control over they encryption key.

    For encryption use CommonCrypro (part of iOS), aes128, cbc. But the real question is how will you securely save the encryption key?

    Here is an encryption/decryption method:

    + (NSData *)doCipher:(NSData *)dataIn
                      iv:(NSData *)iv
                     key:(NSData *)symmetricKey
                 context:(CCOperation)encryptOrDecrypt
    {
        CCCryptorStatus ccStatus   = kCCSuccess;
        size_t          cryptBytes = 0;    // Number of bytes moved to buffer.
        NSMutableData  *dataOut    = [NSMutableData dataWithLength:dataIn.length + kCCBlockSizeAES128];
    
        ccStatus = CCCrypt( encryptOrDecrypt, // kCCEncrypt or kCCDecrypt
                           kCCAlgorithmAES128,
                           kCCOptionPKCS7Padding,
                           symmetricKey.bytes, 
                           kCCKeySizeAES128,
                           iv.bytes,
                           dataIn.bytes,
                           dataIn.length,
                           dataOut.mutableBytes,
                           dataOut.length,
                           &cryptBytes);
    
        if (ccStatus != kCCSuccess) {
            NSLog(@"CCCrypt status: %d", ccStatus);
        }
    
        dataOut.length = cryptBytes;
    
        return dataOut;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excuse me if this has indeed been asked before, I couldn't see anything that
I feel like this question has already been asked and answered, yet I couldn't
This question has been brought up before, and I have searched many of the
I have no experience with maven, so excuse me if this question is silly...
I am a patterns newbie so please excuse this question if it sounds too
Excuse me if this is a silly question but i'm a beginer here. I
I am new to ActionScript so excuse me if this is a stupid question.
excuse me in advance if this is not the right title for the problem
I have posted this question at MathOverflow.com as well. I am no mathematician and
I'm looking for an excuse to learn Django for a new project that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.