class_docstr: implementation of server-side SCRAM-SHA-1 and SCRAM-SHA-256 auth for mongodb
      
code: def __init__(self, method="sha1", get_salted_password=None):
      self.get_salted_password = get_salted_password
      self.snonce = base64.b64encode(os.urandom(24)).decode()
      self.iterations = 4096
      self.messages = []
  
      if method == "sha1":
          self.method_str = "sha1"
          self.method_func = hashlib.sha1
          self.salt = base64.b64encode(os.urandom(16))
      elif method == "sha256":
          self.method_str = "sha256"
          self.method_func = hashlib.sha256
          self.salt = base64.b64encode(os.urandom(28))
  
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 1 to create a new Scram object  with example: obj = Scram(method, get_salted_password)