We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155eb56 commit b40d9e5Copy full SHA for b40d9e5
rsa_encryption_gui/client/network_client.py
@@ -7,10 +7,8 @@
7
import os
8
from rsa_encryption_gui.rsa_encryption import PublicKey
9
10
-HOST_IP = "ENTER HOST IP HERE" # Ex: 192.168.0.19
11
12
-
13
-def run():
+def run(host_ip=raw_input('Enter Host IP Address')):
14
data_file = open(os.path.join(os.path.dirname(__file__), 'Message/Message_to_encrypt.txt'), "r")
15
out = open(os.path.join(os.path.dirname(__file__), 'Message/encrypted_text.txt'), "r+")
16
data = list()
@@ -27,7 +25,7 @@ def run():
27
25
28
26
# Use the same port number as the host
29
port = 1234
30
- s.connect((HOST_IP, port))
+ s.connect((host_ip, port))
31
print "Connected to socket"
32
33
# Wait to receive the public key from the host
0 commit comments