From 9bbcbc7f78af6fb0599a765d57a92ccacc6de909 Mon Sep 17 00:00:00 2001 From: Alex Rubysea Date: Wed, 3 May 2017 21:14:37 -0600 Subject: [PATCH] Really bad salt to remove the possiblility for looking up commander names with online md5 dycrypters. --- eddn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eddn.py b/eddn.py index dd945659..ddfc9900 100644 --- a/eddn.py +++ b/eddn.py @@ -33,6 +33,7 @@ class EDDN: UPLOAD = 'http://eddn-gateway.elite-markets.net:8080/upload/' REPLAYPERIOD = 400 # Roughly two messages per second, accounting for send delays [ms] REPLAYFLUSH = 20 # Update log on disk roughly every 10 seconds + salt = 'SDC Harry Potter' def __init__(self, parent): self.parent = parent @@ -80,7 +81,7 @@ class EDDN: msg['header'] = { 'softwareName' : '%s [%s]' % (applongname, platform=='darwin' and "Mac OS" or system()), 'softwareVersion' : appversion, - 'uploaderID' : config.getint('anonymous') and hashlib.md5(cmdr.encode('utf-8')).hexdigest() or cmdr.encode('utf-8'), + 'uploaderID' : config.getint('anonymous') and hashlib.md5(cmdr.encode('utf-8')+EDDN.salt.encode('utf-8')).hexdigest() or cmdr.encode('utf-8'), } if not msg['message'].get('timestamp'): # already present in journal messages msg['message']['timestamp'] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(config.getint('querytime') or int(time.time())))