diff --git a/RSA/client/client.py b/RSA/client/client.py index e245ed4..0351a07 100644 --- a/RSA/client/client.py +++ b/RSA/client/client.py @@ -2,3 +2,9 @@ from flask import * import OpenSSL as ssl import requests +public_serv= open("./server/ssl.public.key") +data='Hello World !' + + + + diff --git a/RSA/server/__init__.py b/RSA/server/__init__.py index 765b2be..d4eec5d 100644 --- a/RSA/server/__init__.py +++ b/RSA/server/__init__.py @@ -13,7 +13,7 @@ def index(): return render_template("index.html") @app.route('/data', methods=['POST']) -def index(): +def receiv(): encrypted_data = request.form['data'] if __name__ == "__main__":