def do(self): response_object = ApiRequest.do(self) ciphertext = Ciphertext(response_object['input']) response_object['output'] = self.do_filters(ciphertext.serialize()) response_object['objects'] = self.do_object_filters( ciphertext.objects()) return response_object
def do(self): response_object = ApiRequest.do(self) sample = self.request.get('sample_name') output = get_sample(sample + '.txt') response_object['sample'] = sample response_object['output'] = output return response_object
def do(self): response_object = ApiRequest.do(self) input = funcs.sanitize_upper_alpha(response_object["input"]) split_count = int(self.request.get("split_count")) output = {} for i in range(len(input)): char = input[i] j = i % split_count if j not in output: output[j] = "" output[j] = output[j] + char template = jinja_environment.get_template("split.html") template_variables = {"output": output} response_object["output"] = template.render(template_variables) return response_object
def do(self): response_object = ApiRequest.do(self) input = funcs.sanitize_upper_alpha(response_object['input']) split_count = int(self.request.get('split_count')) output = {} for i in range(len(input)): char = input[i] j = i % split_count if j not in output: output[j] = '' output[j] = output[j] + char template = jinja_environment.get_template('split.html') template_variables = {'output': output} response_object['output'] = template.render(template_variables) return response_object
def do(self): response_object = ApiRequest.do(self) key = self.request.get('key') response_object['key'] = key response_object['output'] = decrypt(response_object['input'], key) return response_object
def do(self): response_object = ApiRequest.do(self) key = self.request.get("key") response_object["key"] = key response_object["output"] = decrypt(response_object["input"], key) return response_object
def do(self): response_object = ApiRequest.do(self) ciphertext = Ciphertext(response_object['input']) response_object['output'] = self.do_filters(ciphertext.serialize()) response_object['objects'] = self.do_object_filters(ciphertext.objects()) return response_object