old_contents: """
  Utilities for making requests to Vuforia.
  
  Based on Python examples from https://developer.vuforia.com/downloads/samples.
  """
  
  import hashlib
  import hmac
  import base64
  
  
  def compute_hmac_base64(key: bytes, data: bytes) -> bytes:
      """Return the Base64 encoded HMAC-SHA1 using the provide key"""
      hashed = hmac.new(key=key, msg=None, digestmod=hashlib.sha1)
      hashed.update(msg=data)
      return base64.b64encode(s=hashed.digest())
  
  
  def authorization_header_for_request(access_key: str, secret_key: bytes,
                                       method: str, content: bytes,
                                       content_type: str, date: str,
                                       request_path: str) -> str:
      """Return the value of the Authorization header for the request parameters
  
      TODO Args, Return
      """
  
      hashed = hashlib.md5()
      hashed.update(content)
      content_md5_hex = hashed.hexdigest()
  
      components_to_sign = [
          method,
          content_md5_hex,
          content_type,
          date,
          request_path,
      ]
      string_to_sign = b"\n".join(components_to_sign)
      signature = compute_hmac_base64(
          key=secret_key,
          data=bytes(string_to_sign, encoding='utf-8'),
      )
      auth_header = "VWS {access_key}:{signature}".format(
          access_key=access_key,
          signature=signature,
      )
      return auth_header
  
new_contents: """
  Utilities for making requests to Vuforia.
  
  Based on Python examples from https://developer.vuforia.com/downloads/samples.
  """
  
  import hashlib
  import hmac
  import base64
  
  
  def compute_hmac_base64(key: bytes, data: bytes) -> bytes:
      """Return the Base64 encoded HMAC-SHA1 using the provide key"""
      hashed = hmac.new(key=key, msg=None, digestmod=hashlib.sha1)
      hashed.update(msg=data)
      return base64.b64encode(s=hashed.digest())
  
  
  def authorization_header_for_request(access_key: str, secret_key: bytes,
                                       method: str, content: bytes,
                                       content_type: str, date: str,
                                       request_path: str) -> str:
      """Return the value of the Authorization header for the request parameters
  
      TODO Args, Return
      """
  
      hashed = hashlib.md5()
      hashed.update(content)
      content_md5_hex = hashed.hexdigest()
  
      components_to_sign = [
          method,
          content_md5_hex,
          content_type,
          date,
          request_path,
      ]
      string_to_sign = "\n".join(components_to_sign)
      signature = compute_hmac_base64(
          key=secret_key,
          data=bytes(string_to_sign, encoding='utf-8'),
      )
      auth_header = "VWS {access_key}:{signature}".format(
          access_key=access_key,
          signature=signature,
      )
      return auth_header
  
subject: Undo bytes conversion