You can see old answered threads like Password encryption in dotnet
(answer with CodeProject article...)
How to maintain plaintext passwords in ini file in C#.Net?

Hi Team,
I have .Net core console application which is running on linux platform.
I am using one .INI file for storing project specific information (like user name and password information etc.) While loading time, the application will parse the .INI file data and storing to memory class.
I need to secure my password information in .INI file. I don't want to use password in plaintext
How to handle it? Please help me on this.
Regards
Prabs
3 answers
Sort by: Most helpful
-
Castorix31 68,676 Reputation points
2021-07-14T12:07:51.267+00:00 Karen Payne MVP 30,131 Reputation points2021-07-14T12:30:49.037+00:00 Storing sensitive information such as a password is not wise as a savvy user can decompile your application and/or inspect data in memory.
Example decompiling code with encryption methods.
If you really want to do this see
Prabs 1 Reputation point2021-07-15T09:18:52.187+00:00 I am maintaining SNMP V3 parameters in INI file as plain text.
.INI FILE :
[SNMP V3]
SNMP_VERSION=3
UserName=UNAME
AuthPassword=authpwd
AuthProtocol=SHA512
PrivPassword=privpasswd
PrivProtocol=AES256I don't want to allow other users modify this information. How to handle this?