Jump to content

Program config data storage

- - - - -

  • Please log in to reply
3 replies to this topic

#1
taburetka

taburetka

    Newbie

  • Members
  • PipPip
  • 11 posts
I have a program that uses text file to read and write it's configuration data in a "property=value" format. But in this way any user can just open the config file and edit properties "outside" of the program, which is inadmissible under my task. What other approachs can you recommend for more safe storage of config data? Any tips are appreciated :)

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
You could encrypt your config file
Or insted of having something like this
user=5
data=b
line=4
...
You could simply have 5b4
It's a lot harder to see what does what.

And if you add encryption on top of that you should be ok.

#3
taburetka

taburetka

    Newbie

  • Members
  • PipPip
  • 11 posts
Vaielab, thanks, I've thought about the encryption too.
Is it any simple crypto library for .NET?

#4
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Encrypting and Decrypting a C# string | Martijn's C# Programming Blog

Or google "c# encrypt string"




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users