code: def enc(self, byts, asscd=None):
          '''
          Encrypt the given bytes and return an envelope dict in msgpack form.
  
          Args:
              byts (bytes): The message to be encrypted.
              asscd (bytes): Extra data that needs to be authenticated (but not encrypted).
  
          Returns:
              bytes: The encrypted message. This is a msgpacked dictionary
              containing the IV, ciphertext, and associated data.
          '''
          iv = os.urandom(16)
          encryptor = AESGCM(self.ekey)
          byts = encryptor.encrypt(iv, byts, asscd)
          envl = {'iv': iv, 'data': byts, 'asscd': asscd}
          return s_msgpack.en(envlf enc(self, byts, asscd=None):
          '''
          Encrypt the given bytes and return an envelope dict in msgpack form.
  
          Args:
              byts (bytes): The message to be encrypted.
              asscd (bytes): Extra data that needs to be authenticated (but not encrypted).
  
          Returns:
              bytes: The encrypted message. This is a msgpacked dictionary
              containing the IV, ciphertext, and associated data.
          '''
          iv = os.urandom(16)
          encryptor = AESGCM(self.ekey)
          byts = encryptor.encrypt(iv, byts, asscd)
          envl = {'iv': iv, 'data': byts, 'asscd': asscd}
          return s_msgpack.en(envl)
docs: Encrypt the given bytes and return an envelope dict in msgpack form.
  
          Args:
              byts (bytes): The message to be encrypted.
              asscd (bytes): Extra data that needs to be authenticated (but not encrypted).
  
          Returns:
              bytes: The encrypted message. This is a msgpacked dictionary
              containing the IV, ciphertext, and associated data.