console app – password to authenticate user?

This may seem simple… I’m not a developer by trade – but I can usually find my way around.

I am developing a console application. I want to force the user to enter a password at the beginning. That password will determine if they can proceed or if the program exits.

Obviously I could read a string value, but is that safe? In other words, what are the odds that someone could start fiddling with the .exe and find the password I’m looking for in plain site?

My second thought was to use SecureString, but I’m not sure that is going to work out either.

Authenticating to something like Active Directory will not be an option.

Does anyone have tips/suggestions for options I could research?

submitted by /u/nonuckles
[link] [comments]

Leave a Reply