Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralText Control Pin
rawatvs7-Oct-03 3:53
rawatvs7-Oct-03 3:53 
GeneralRe: Text Control Pin
alex.barylski7-Oct-03 9:29
alex.barylski7-Oct-03 9:29 
GeneralCListCtrl problem Pin
jgauffin7-Oct-03 3:51
jgauffin7-Oct-03 3:51 
GeneralRe: CListCtrl problem Pin
David Crow7-Oct-03 4:00
David Crow7-Oct-03 4:00 
GeneralRe: CListCtrl problem Pin
jgauffin7-Oct-03 4:22
jgauffin7-Oct-03 4:22 
GeneralRe: CListCtrl problem Pin
vcplusplus7-Oct-03 5:11
vcplusplus7-Oct-03 5:11 
QuestionA safe system place for confidental data? Pin
Osborn7-Oct-03 3:43
Osborn7-Oct-03 3:43 
AnswerRe: A safe system place for confidental data? Pin
David Crow7-Oct-03 4:17
David Crow7-Oct-03 4:17 
Osborn wrote:
Can you tell me where is a safe place for that?

In reality, there is none.

Osborn wrote:
File and Registry changes are easily to observe or spy. So I think this is not a good idea!

If you are not willing to use the registry, or some form of a file, you've just limited your options to near zero.

Having said that, a file or the registry is perfectly suited to what you want, as long as you account for the human factor. Let me explain.

More often than not when folks are putting (sensitive) data into a file, it's as obvious as the nose on your face. It practically has "invite" written all over it. Take into account that if you use words/tokens that people are familiar with, curiosity will get the best of them and the data could become compromised. If your program is called "eric", can you tell me what would be wrong with naming your data file eric.dat, with a line such as NumberOfTimesFileHasBeenDecrypted= in it?

I snoop around on my computer quite a bit to see what files are contained where. If a file has an interesting name, rest assured that I'm gonna try and open it. If the file looks like an ordinary file that could be found anyplace else, I'm probably not going to be interested. Ok, let's say that I've opened the file. If I see things in it such as Password=, it's a safe bet that I'm gonna try and do something with that. However, if it had stuff in it such as ColorDelta=, or DeviceDependency=, that probably is of no interest to me. You could take that one step further by renaming the entries in the file, either each time your program is ran, or on certain days of the week. Get the idea?

You could do the same thing with the registry. Just because the registry is more hierarchical than a file, don't think it's any more secure. I watch my registry on a regular basis, too! Programs "hide" stuff in the oddest places.

One other option that is available to you is to put the decryption count in the program itself. See UpdateResource() for this.


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

AnswerRe: A safe system place for confidental data? Pin
Terry O'Nolley7-Oct-03 4:23
Terry O'Nolley7-Oct-03 4:23 
GeneralRe: A safe system place for confidental data? Pin
Osborn7-Oct-03 7:36
Osborn7-Oct-03 7:36 
AnswerRe: A safe system place for confidental data? Pin
JWood7-Oct-03 9:13
JWood7-Oct-03 9:13 
GeneralWeb browser control Pin
Anthony98877-Oct-03 3:33
Anthony98877-Oct-03 3:33 
QuestionMoveFileEx not always working? Pin
Kayembi7-Oct-03 3:20
Kayembi7-Oct-03 3:20 
AnswerRe: MoveFileEx not always working? Pin
David Crow7-Oct-03 3:55
David Crow7-Oct-03 3:55 
GeneralRe: MoveFileEx not always working? Pin
Kayembi7-Oct-03 6:02
Kayembi7-Oct-03 6:02 
GeneralRe: MoveFileEx not always working? Pin
David Crow7-Oct-03 6:15
David Crow7-Oct-03 6:15 
GeneralProgramm needs VC++ to run Pin
DarkMarine7-Oct-03 3:20
DarkMarine7-Oct-03 3:20 
GeneralRe: Programm needs VC++ to run Pin
vcplusplus7-Oct-03 3:48
vcplusplus7-Oct-03 3:48 
GeneralRe: Programm needs VC++ to run Pin
DarkMarine7-Oct-03 7:26
DarkMarine7-Oct-03 7:26 
GeneralRe: Programm needs VC++ to run Pin
vcplusplus7-Oct-03 7:55
vcplusplus7-Oct-03 7:55 
GeneralRe: Programm needs VC++ to run Pin
DarkMarine7-Oct-03 8:05
DarkMarine7-Oct-03 8:05 
GeneralRe: Programm needs VC++ to run Pin
vcplusplus7-Oct-03 9:29
vcplusplus7-Oct-03 9:29 
GeneralRe: Programm needs VC++ to run Pin
DarkMarine9-Oct-03 10:28
DarkMarine9-Oct-03 10:28 
GeneralRe: Programm needs VC++ to run Pin
Terry O'Nolley7-Oct-03 3:50
Terry O'Nolley7-Oct-03 3:50 
GeneralRe: Programm needs VC++ to run Pin
Stefan Pedersen7-Oct-03 3:51
Stefan Pedersen7-Oct-03 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.