C# Encrypt Text Output

前端 未结 9 1315
没有蜡笔的小新
没有蜡笔的小新 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:28

    You should call ProtectedData.Protect to encrypt the data using a per-user key.

    Note that it wouldn't be very hard for a skilled user to decrypt and modify the data.
    Anything that your program does on the user's machine can be done by the user too.

提交回复
热议问题