class_docstr: implementation of server-side SCRAM-SHA-1 and SCRAM-SHA-256 auth for mongodb
      
code: def salt_password(self, user, password):
      if self.method_str == "sha1":
          password = _password_digest(user, password).encode("utf-8")
      elif self.method_str == "sha256":
          password = saslprep(password).encode("utf-8")
  
      return hashlib.pbkdf2_hmac(
          self.method_str,
          password,
          base64.b64decode(self.salt),
          self.iterations,
      )
  
file_path: mindsdb/mindsdb/api/mongo/classes/scram.py
imports: import base64
  import hashlib
  import hmac
  import os
  from pymongo.auth import _password_digest, _xor, saslprep
label_desc: Use image node_id 5 for calling the Scram obj's underlying member method code with example usage: obj.salt_password(user, password) and returns: hashlib