I'm creating a simple java-based login system. It asks for login details and check a text file to see if the credentials matches. If they do, user is allowed to pass through the security. As of now anyone can just open the '.txt' file and read the credentials. I want to prevent that from happening. How can I do that?
P.S.- I'm still learning the basics and saving DBMS for later, so that's that.