title: What is the hash function used by MongoDB to hash the database user passwords?
body: <p>In MongoDb use can add user to a database for access control. A user can be inserted with:</p>
  
  <pre><code>db.addUser({ user: "aaaa", pwd: "1234", roles: [...]})
  </code></pre>
  
  <p>and the inserted user is:</p>
  
  <pre><code>{
      "user" : "aaa",
      "pwd" : "08ccdf34dbb3ca05dcc195e30994b628",
      "roles" : [
          "userAdminAnyDatabase"
      ],
      "_id" : ObjectId("52a88b45965c4e7ad46bb97b")
  }
  </code></pre>
  
  <p>What function does MongoDB use to compute/hash the <code>pwd</code> key?</p>