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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:39:11+00:00 2026-05-23T10:39:11+00:00

How can I prevent my Cocoa app from using any virtual memory, or if

  • 0

How can I prevent my Cocoa app from using any virtual memory, or if that is not possible, securely clear the virtual memory contents (on the hard drive) after usage?

I’m worried about such things, because let’s say I’m creating an app like 1Password that stores passwords. And let’s say, while the passwords are temporarily shown to the user and read from memory, what if virtual memory is needed? Then I run the risk of having the actual passwords exposed on the hard drive for intruders to look at!

Another example would be encryption software. A file is put in, and encrypted file is put out. If virtual memory is needed, the unencrypted file contents may be exposed on hard drive. This is very bad, because the user would expect only the original file itself to be exposed. The user would not expect the file contents to lay exposed on the hard drive because of virtual memory usage! In fact, the user shouldn’t have to worry about such things.

  • 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-23T10:39:11+00:00Added an answer on May 23, 2026 at 10:39 am

    Apple provides a system level feature that solves this problem called Secure Virtual Memory that’s on by default on newer Macs (I think Snow Leopard onwards). You can turn it on and off from Security pane of System Preferences.

    As far as I know, there’s no easy way to do this at the application level, although you could certainly encourage your users to enable it.

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

Sidebar

Related Questions

How can I prevent the image tag that calls the associated image from displaying
How can I prevent my javascript from Firebug view?So that I can prevent Hacking
Is there a way that I can prevent a user from logging into a
I realise that I can prevent unauthenticated users from accessing views at controller level
So far I figured out that one can prevent Eclipse from complaining about proprietary
Hi Experts How I can prevent database user deleting any data in tables using
Is there any way I can prevent hotlinking on Amazon S3 without using signed
Is there any way I can prevent a child class from overriding a method
Does anyone know how I can prevent the text in a table cell from
How can I prevent a user from resizing GridViewColumns withing a ListView control?

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.