Create mongoose plugin for password encryption