Guest User

Untitled

a guest
Jul 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def encrypt_function(sting):
  2.  
  3. encrypted_string = ''
  4. user_input = int(input('Enter an integer'))
  5.  
  6. for c in string:
  7. encrypted_string += chr((ord(c) % 173 + user_input))
  8.  
  9. return encrypted_string
Add Comment
Please, Sign In to add comment