You would have to write code to encrypt those files. Basically, extending the UsersRolesLoginModule.
You could store the user names and password in a database. But even then, if the passwords are encrypted, you would have to extend the DatabaseServerLoginModule and override the convertRawPassword to handle the encrypted password.
Or you could connect to an LDAP server. Then no extra coding is necessary and LDAP maintains encrypted passwords.