title: how to keep c++ variables in RAM securely?
body: <p>I'm working on a C++ application which is keeping some user secret keys in the RAM. This secret keys are highly sensitive &amp; I must minimize risk of any kind of attack against them.<br/>
  I'm using a character array to store these keys, I've read some contents about storing variables in CPU registers or even CPU cache (i.e using C++ <code>register</code> keyword), but seems there is not a guaranteed way to force application to store some of it's variables outside of RAM (I mean in CPU registers or cache).<Br/>
  Can anybody suggest a good way to do this or suggest any other solution to keep these keys securely in the RAM (I'm seeking for an OS-independent solution)?</p>