Delete alice.py

This commit is contained in:
Lachezar 2021-11-09 14:36:03 -05:00 committed by GitHub
parent 6ec668d7a4
commit d7cc314ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +0,0 @@
"""
!/usr/bin/env python
https://pypi.org/project/websockets/
@author Lachezar Todorov
"""
import asyncio
import encrypt_decrypt
from websockets import connect
class Alice():
async def messageEncrypt(uri, publicKey, message):
encryptedMessage = encrypt_decrypt.encrypt_decrypt.encryption(message, publicKey)
async with connect(uri) as websocket:
await websocket.send(encryptedMessage)
#message = await websocket.recv()
#print(message)
#asyncio.run(hello("ws://localhost:8765"))