• Advertisement

Archived

This topic is now archived and is closed to further replies.

the best and safest way to keep data away from user?

This topic is 5039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m working on a Windows Forms application, and I have some data that the user really shouldn''t see/change... what''s the safest way to hide this info, and still let the program be able to change it? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Put it in the registry if the advanced user (or you) could find it useful to tweak.

Otherwise, if it''s constant stuff that you (as a user) will never change, than just hard-code it?

Regards,
Jeff


[ CodeDread ]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by rypyr
just hard-code it?


Whatever else you do, hard-coding stuff is very bad, if you insist you could collect everything to be hard-coded into a single class, that way, at least, it would be easy to find.

Otherwise, either the registry (as suggested) or a settings file should be adequate.

How sensitive is the data? Is it something like registration information that the user should not be able to modify? if so you might want to look to some kind of encryption (IIRC, .NET allows you access to some pre-written routines)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If your program can read the data, your user can also get at the data (with a little bit of hacking skill). Since the user owns the machine, you can''t protect against it.

Share this post


Link to post
Share on other sites

  • Advertisement