I am developing a project and I am referring a java tutorial to edit the file SampleLoginModule.java so that it can read a file name and passwords of people securely. Now I want to retrieve the file name and password of users while respecting the confidentiality and integrity of the password stored in the file.
My question is: What are the security mechanisms to implement to satisfy both the confidentiality and integrity of password?
I thought to encrypt the file but I do not know whether to use in this case a symmetric or asymmetric encryption? And is that enough to satisfy all the requirements requested? It should certainly create a control file access in such a way that it can be deleted? What is the best way to do? Knowing I think that just restrict the access rights to the file is not secure optimal (well I know too!) Access? Maybe there are other ways to do it?
Bookmarks