crsandu

Untitled

Nov 16th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def encrypt(msg, p):
  2.     newmsg = []
  3.  
  4.     for I in range(0, 17):
  5.         p = random.randint(1, 256)
  6.         data = ord(msg[I]) ^ p
  7.         newmsg.append(data)
  8.  
  9.     return str(newmsg)
Advertisement
Add Comment
Please, Sign In to add comment