Exemplo n.º 1
0
def encrypt():
    text = request.form["textarea"]
    rotation = int(request.form["rot"])
    encrypted_text = rotate_string(text, rotation)
    return form.format(encrypted_text)
Exemplo n.º 2
0
def encrypt():
    rot = int(request.form['rot'])
    form_text = str(request.form['text'])
    encrypt_text = rotate_string(form_text, rot)
    return form.format(encrypt_text)
Exemplo n.º 3
0
def encrypt():
    rot_by = int(request.form['rot'])
    text_to_encrypt= str(request.form['text'])
    encrypted = rotate_string(text_to_encrypt,rot_by) 
    return form.format(encrypted)
Exemplo n.º 4
0
def encrypt():
    rot = int(request.form['rot'])
    text = request.form['text']
    text_encrypted = rotate_string(text, rot)
    return form.format(text_encrypted)
Exemplo n.º 5
0
def encrypt():
    rot = int(request.form['rot'])
    text = request.form['text']
    message = rotate_string(text, rot)
    return form.format(message)
Exemplo n.º 6
0
def encrypt():
    rot = int(request.form['rot'])
    text = request.form['text']
    return '<h1>' + form.format(rotate_string(text, rot)) + '<h1>'
Exemplo n.º 7
0
def encrypt():
    rotate = int(request.form['rot'])
    text = str(request.form['text'])
    encryptstring = rotate_string(text, rotate)
    rotatedstring = '<h1>' + encryptstring + '</h1>'
    return form.format(encryptstring)
Exemplo n.º 8
0
def encrypt():
    user_text = str(request.form["text"])
    user_rot = int(request.form["rot"])
    encrypted_message = rotate_string(user_text, user_rot)
    return form.format(encrypted_message)
Exemplo n.º 9
0
def encrypt():
    crypto = int(request.form['rot'])
    encryption = request.form['text']
    encrypted_text = form.format(rotate_string(encryption, crypto))
    return encrypted_text
Exemplo n.º 10
0
def encrypt():
    rotate = int(request.form['rot'])
    message = request.form['text']
    new_message = rotate_string(message, rotate)
    return form.format(new_message)
Exemplo n.º 11
0
def encrypt():
    text_mesg = request.form['text']
    rot_num = request.form['rot']
    #encrypted_txt=''
    encryptd_txt = rotate_string(text_mesg, int(rot_num))
    return form.format(encryptd_txt)
Exemplo n.º 12
0
def encrypt():
    rot = int(request.form.get('rot'))
    text = str(request.form.get('text'))
    final_string = rotate_string(text, rot)
    return form.format(final_string)
Exemplo n.º 13
0
def encrypt():
    rot = (int)(request.form["rot"])
    text = (str)(request.form["text"])
    encrypted_text = rotate_string(text, rot)
    return form.format(encrypted_text)
Exemplo n.º 14
0
def encryption():
    rot = int(request.form['rotate'])
    char = request.form['message']

    abc = rotate_string(char, rot)
    return form.format(abc)
Exemplo n.º 15
0
def encrypt():
    text = request.form['text-input']
    rot = int(request.form['rotate-input'])
    new_text = rotate_string(text, rot)
    new_text_html = "<h1>" + new_text + "</h1>"
    return form.format(new_text)
Exemplo n.º 16
0
def encrypt():
    rotation = int(request.form["rot"])
    word = (request.form["text"])
    encrypto = rotate_string(word, rotation)
    return form.format(encrypto) 
Exemplo n.º 17
0
def encrypt():
    #Caesar cipher encryption function taking inputs 'text' and the degree of rotation
    text = request.form['text']
    rot = request.form['rot']
    jumbled_text = rotate_string(str(text), int(rot))
    return form.format(jumbled_text)
Exemplo n.º 18
0
def encrypt():
    rotate = request.form['rot']
    text = request.form['text']
    encrypt = rotate_string(text, int(rotate))
    return form.format(encrypt)
Exemplo n.º 19
0
def encrypt():
    rot = request.form["rot"]
    text = request.form["text"]
    answer = rotate_string(text, int(rot))
    return "<h1>" + form.format(answer) + "<h/1>"
Exemplo n.º 20
0
def encrypt():
    rots = int(request.form['rot'])
    texts = request.form.get("text")
    var3 = rotate_string(texts, rots)
    return form.format(var3)
Exemplo n.º 21
0
def encrypt():
    rot = request.form['rot']
    rot = int(rot)
    text = request.form['text']
    encryption = rotate_string(text, rot)
    return form.format(encryption)
Exemplo n.º 22
0
def encrypt():   
    rot = int(request.form["rot"])
    text = request.form["text"]  
    encoded_text = rotate_string(text, rot)
    return form.format(encoded_text)
Exemplo n.º 23
0
def encrypt():
    rotation = request.form['rot']
    string = request.form['text']
    encrypted_string = rotate_string(string, int(rotation))
    return form.format(encrypted_string)
Exemplo n.º 24
0
def submission():
    rot = request.form['rot']
    text = request.form['text']
    return form.format(rotate_string(text, rot))
Exemplo n.º 25
0
def encrypt():
    rot = request.form['rot']
    text = request.form['text']
    
    return form.format(rotate_string(str(text),int(rot)))
Exemplo n.º 26
0
def encrypt():
    rot_char = int(request.form['rot'])
    text = request.form['text']
    encrypted = rotate_string(text, rot_char)

    return '<h3>' + encrypted + '</h3>'
Exemplo n.º 27
0
def encrypt():
    text = request.form['source']
    rot = int(request.form['rot'])
    result = rotate_string(text, rot)
    return form.format(result)
Exemplo n.º 28
0
def encrypt():
    r = int(request.form["rot"])
    t = request.form["text"]
    cypher = rotate_string(t, r)
    return form.format(cypher)
Exemplo n.º 29
0
def encrypt():
    rot = int(request.form['rot'])
    text = str(request.form['text'])

    code = rotate_string(text, rot)
    return form.format(code)
Exemplo n.º 30
0
def encrypt():
    text = request.form['text']
    rot = request.form['rot']
    rot = int(rot)
    return form.format(rotate_string(text, rot))
Exemplo n.º 31
0
def encrypt():
    input_mess = request.form['text']
    number_input = request.form['rot']
    encrypted_mess = rotate_string(str(input_mess), int(number_input))
    return caesar_form.format(encrypted_mess)