So I am trying to import a csv file into my mongo db. The fields include a username and a password, which is a string. I am able to successfully import the file, but the password is being stored as a string only. But my db stores hashed passwords, and has a salt field. I want to know if I can force mongo to hash the password before importing it into the db. Is there a command or will I have to find another way? Any suggestions are highly appreciated.
Please note that I am able to import all the data successfully, I just want to know how to hash the users password on import and then store it.