Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from crypto import *
- from socket import *
- message = input('Message: ')
- seed = int(input('Seed: '))
- a = Crypto('key1', message, seed)
- s = socket(AF_INET,SOCK_STREAM)
- s.bind(('', 20))
- s.listen(5)
- c,b = s.accept()
- print(b)
- i = a.key+'\n'
- o = a.In()+'\n'
- s.send(b'sending data...')
- s.send(i.encode())
- s.send(o.encode())
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment