Article View: borland.public.cppbuilder.nativeapi
Article #4142Re: Locking Page in Memory
From: Jonathan Benedicto
Date: Thu, 09 Mar 2006 18:36
Date: Thu, 09 Mar 2006 18:36
18 lines
1568 bytes
1568 bytes
prunesquallor wrote: > Well, I guess it depends on the circumstances. If a key has been swapped > out to the swap file, then it could still be there hours, days or even > weeks - until that bit of the swap file gets overwritten. So that key is > recoverable. Whereas a key in memory expires the next time the machine's > off. Write over the memory with 0's. Eg: AnsiString Key = "123456799"; DoSomething( Key ); SecureZeroMemory( Key.c_str(), Key.Length() ); HTH Jonathan
Technical Details
Message-ID:
<441075aa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440eb97d@newsgroups.borland.com> <440ec0cc@newsgroups.borland.com> <440ee584$1@newsgroups.borland.com> <4410393c$1@newsgroups.borland.com> <441046ed@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a6a321b0cbcc9b74 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <invalid@nobody.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <440eb97d@newsgroups.borland.com> <440ec0cc@newsgroups.borland.com> <440ee584$1@newsgroups.borland.com> <4410393c$1@newsgroups.borland.com> <441046ed@newsgroups.borland.com> Subject: Re: Locking Page in Memory Date: Thu, 9 Mar 2006 13:36:35 -0500 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.199.201.230 Message-ID: <441075aa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141929386 69.199.201.230 (9 Mar 2006 10:36:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail