Hi Vishesh,
In case you are concerned with the password being visible in mongo shell history or via process listings, you can specify -p or -password without
actually providing the password on command line.
eg.
mongo localhost:27017/admin -u abc -p
In such a case mongo shell will interactively ask for a password from the user.
Moreover, the passwords are always hashed on the client before being sent to the server.
Hopefully this addresses your question. If not, please provide a more elaborate description of your problem.
Regards,
Pooja
Hi Vishesh,
In order to understand your use case better, could you elaborate on why you think the password needs to be encrypted ?
Have you considered the following possible solutions:
Regards,
Pooja