yazdmich

Untitled

Jun 13th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from crypto import *
  2. from socket import *
  3. message = input('Message: ')
  4. seed = int(input('Seed: '))
  5. a = Crypto('key1', message, seed)
  6. s = socket(AF_INET,SOCK_STREAM)
  7. s.bind(('', 20))
  8. s.listen(5)
  9. c,b = s.accept()
  10. print(b)
  11. i = a.key+'\n'
  12. o = a.In()+'\n'
  13. s.send(b'sending data...')
  14. s.send(i.encode())
  15. s.send(o.encode())
  16. s.close()
Advertisement
Add Comment
Please, Sign In to add comment