def encrypt(): rot = int(request.form['rot']) text = request.form['text'] encrypted = rotate_string(text, rot) return form.format(encrypted)
def encrypt(): text = request.form['text'] rot = int(request.form['rot']) changed_text = rotate_string(text, rot) #form = '<h1>' + changed_text + '</h1>' return content.format(text_to_show = changed_text)
def encrypt(): rot = request.form["rot"] if not is_integer(rot): return "Not a valid integer" else: rot = int(rot) text = request.form["text"] encrypted_text = rotate_string(text, rot) return form.format(encrypted_text)
def encrypt(): rot_msg = request.form['text'] rot_num = request.form['rot'] new_rot = int(rot_num) new_txt = list(rot_msg) new_st = '' n_char = '' for char in new_txt: n_char = rotate_string(char,new_rot) new_st += n_char return form.format(new_st)
def encrypt(): rot_num = int(request.form["rot"]) text = request.form["text"] encrypted_message = rotate_string(text, rot_num) print("lolololol") return form.format(encrypted_message)
def encrpyt(): rot = request.form['rot_number'] text = request.form['text_box'] rot = int(rot) content = rotate_string(text, rot) return form.format(text=content)
def encrypt(): text = request.form['text'] rot = int(request.form['rot']) answer = rotate_string(text, rot) return render_template('/index.html', answer=answer)
def encrypt(): rRot = int(request.form["rot"]) tText = request.form["text"] return '<h1>' + rotate_string(tText, rRot) + '</h1>'
def encrypt(): rotation = int(request.form["rot"]) text = request.form["text"] encrypted_string = rotate_string(text, rotation) return form.format(encrypted_string)
def encrypt(): rotate = int(request.form['rot']) text_to_encrypt = request.form['text'] textbox_form = form.format(rotate_string(text_to_encrypt, rotate)) return "<h1>{}</h1>".format(textbox_form)