Re: Forcing data into RAM memory only?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Programmers often ask for help with a solution to a problem instead of
asking for help with the (fundamental) problem.

Here, the solution is to fix pages to prevent them from being swapped to the
page file. The real problem is to protect sensitive data, especially the
password.

If you want help with the fundamental problem, then the problem becomes a
security issue that will get a better answer in the security newsgroup. I am
nearly certain that security specialists will say that the solution of
locking memory is a bad one, but I am not a security specialist. If you ask
in security newsgroup how to develop a tool for better privacy online and
offline then the solution, or one of the most suggested solutions, will be
to use a methodology that uses a hash such that you don't load the password
into memory at all when validating it. That is how Windows (2000 and above
or something like that) and SQL Server authentication work.


"hexa" <hexa@xxxxxxxx> wrote in message
news:1145686132.119320.207770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I'm currently developing an open source tool for better privacy online
and offline; it would be very important, however, to prevent disk
swapping for this application, so that no sensible data gets written
to disk unless the program wants to write it.

I was wondering if it is possible to use APIs (or something else) to
force Windows to stop any disk swapping activity for this particular
application (using only available RAM memory, no virtual memory.)

Any suggestions on how i could accomplish this task?
Is it possible to do this using VirtualAlloc's MEM_PHYSICAL?

Thanks in advance,

Z.M.



.



Relevant Pages

  • Re: Mandrake 10.1 Community
    ... It makes sense these days too, when making backups to CD's ... > memory and disk drives, it was difficult to sort data stored on tapes. ... I think that is one talent that many programmers today have never learnt. ...
    (alt.os.linux.suse)
  • Re: Lisp and low-level operating system development
    ... > more writing to memory that isn't allocated by accident. ... >> modern software design: that of security. ... By demanding that programmers should deal with _both_ ... It isn't an software virtual machine in the way you're envisioning. ...
    (comp.lang.lisp)
  • Re: Standards for developing secure software
    ... Many programmers see security as something extremly difficult. ... This is a job for the network and technet-guys to do. ... professional pride in the same way as saving memory and CPU power is. ...
    (SecProg)
  • Re: Garbage collection
    ... Some of them have been mentioned in other responses; ... I'll add that encouraging programmers to lose track of when their ... dynamic objects are valid does not "increase security". ... each memory piece, less mistakes are done in big software projects, ...
    (comp.std.c)
  • RE: Standards for developing secure software
    ... I'm not an expert in security but I am a programmer and I do ... > I deal with leading programmers, and it seems to me that they are very ... > CPU ... I'm still more oriented towards CPU and memory, ...
    (SecProg)