def resource_data_get(context, resource_id, key):
 result = resource_data_get_by_key(context, resource_id, key)
 if result.redact:
  return crypt.decrypt(result.decrypt_method, result.value)
 return result.value

def resource_data_get ( context , resource_id , key ) : result = resource_data_get_by_key ( context , resource_id , key ) if result . redact : return crypt . decrypt ( result . decrypt_method , result . value ) return result . value
lookup value of resources data by key .