C# Encrypt Text Output

前端 未结 9 1306
没有蜡笔的小新
没有蜡笔的小新 2020-12-14 13:37

I have created a few little programs that export data to a text file using StreamWriter and then I read them back in using StreamReader. This works great and does what I nee

9条回答
  •  不知归路
    2020-12-14 14:01

    If a program can access the information, a user usually can too. However you can produce data the user will not immediately understand.

    I would start by creating a class that holds all state information you want to save, isolating the problem. Coincidentally, the BinaryFormatter class will then allow you to easily save and load this class to/from a file. I don't know if it's results are "unreadable enough" - if not, apply Base64 encoding like Leon mentioned.

提交回复
热议问题