Example #1
0
def encrypt():

    rot = int(request.form['rot'])
    text = request.form['text']

    encrypted = rotate_string(text, rot)
    return form.format(encrypted)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)
Example #6
0
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)
Example #7
0
def encrypt():
        text = request.form['text']
        rot = int(request.form['rot'])
        answer =  rotate_string(text, rot)
        return render_template('/index.html', answer=answer)
Example #8
0
def encrypt():
    rRot = int(request.form["rot"])
    tText = request.form["text"]
    return '<h1>' + rotate_string(tText, rRot) + '</h1>'
Example #9
0
def encrypt():
    rotation = int(request.form["rot"])
    text = request.form["text"]
    encrypted_string = rotate_string(text, rotation)

    return form.format(encrypted_string)
Example #10
0
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)