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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:16:43+00:00 2026-06-17T04:16:43+00:00

On iOS, I was wondering, say if I read user provided password value as

  • 0

On iOS, I was wondering, say if I read user provided password value as such:

NSString* strPwd = UITextField.text;

//Check 'strPwd'
...

//How to clear out 'strPwd' from RAM?

I just don’t like leaving sensitive data “dangling” in the RAM. Any idea how to zero it out?

  • 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-17T04:16:44+00:00Added an answer on June 17, 2026 at 4:16 am

    Basically you really can’t. There are bugs filed with Apple over this exact issue. Additionally there are problems with UITextField and NSString at a minimum.

    To reiterate the comment in a now deleted answer by @Leo Natan:

    Releasing the enclosing NSString object does not guarantee the string
    bytes are zeroes in memory. Also, if a device is jailbroken, all the
    sandboxing Apple promises will be of no use. However, in this case,
    there is little one can do, as it is possible to swap the entire
    runtime in the middle of the application running, this getting the
    password from the memory.

    Please file another bug with apple requesting this, the more the better.

    Apple Bug Reporter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering can I check if the device (iPhone, iPad, iPod i.e. iOS devices)
I'm wondering what is the latency (or sensitivity) of iOS devices such as iPad
I was wondering if is there any way to quickly check iOS/objective-c snippets or
I was wondering how to read a file from a specific location on ios.
I was wondering what others do in the ways of testing for multiple iOS
I was wondering if anyone could help me implement color selection in my iOS
I am a bit new to iOS Development and I was wondering if someone
Wondering what I'm missing here. Relatively new to C and iOS development, so please
Am a newbie to iOS App development and to design. I was wondering about
Just saw a view in iOS settings page, wondering how to create it, it

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.