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 8582067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:12:03+00:00 2026-06-11T21:12:03+00:00

in my app I can save an read fine 1 password store in the

  • 0

in my app I can save an read fine 1 password store in the keychain using this code

// save password
[keychainItem setObject:textFieldPassword.text forKey:(__bridge id)(kSecValueData)];

//get pasword from keychain
NSString *_password = [keychainItem objectForKey:(__bridge id)(kSecValueData)];

My question is: how can I store more than 1 password at a time in the keychain?

  • 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-06-11T21:12:04+00:00Added an answer on June 11, 2026 at 9:12 pm

    Thank you all for your answers.

    Here the solution I used:

    adding to my project the files KeychainItemWrapper.h/m

    allocating 2 keychain items:

    //aloc for user password
    keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"passowrdKey1" accessGroup:nil];
    //aloc for user password2
    keychainItem2 = [[KeychainItemWrapper alloc] initWithIdentifier:@"passowrdKey1" accessGroup:nil];
    

    then just use this to read/write

    //WRITE    
    // save password
    [keychainItem setObject:@"password1" forKey:(__bridge id)(kSecValueData)];
    // save password2
    [keychainItem2 setObject:@"password2" forKey:(__bridge id)(kSecValueData)];
    
    //READ        
    //get pasword from keychain
    NSString *_pass = [keychainItem objectForKey:(__bridge id)(kSecValueData)];
    
    //get pasword from keychain
    NSString *_pass2 = [keychainItem2 objectForKey:(__bridge id)(kSecValueData)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't figure out how to save and read data using google app engine.
In my app, the user can save his input to disk. This is done
I'm developing web app that user can save his/her work to server. The data
I have a failing model.save() in my Django app. How can I see the
After update our iphone app can not access the keychain. The distribution certificate has
I have createn an app, this app can be found here Everything is working
I am using this code: def req(url, postfields): proxy_support = urllib2.ProxyHandler({http : 127.0.0.1:8118}) opener
I am saving a WPF FlowDocument to the file system, using this code and
Can someone please tell me where I'm going wrong with this piece of code?
I've read many topic on stackoverflow,and google, about this argument but i can't orient

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.