diff --git a/md5hash.py b/md5hash.py index ccc7652..64cf02e 100644 --- a/md5hash.py +++ b/md5hash.py @@ -4,10 +4,12 @@ def hash(boxID, coin_name, public_key, private_key, webdev_key, amount, period, amountUSD, userID, language, iframeID, orderID, width, height): user_format = 'MANUAL' - string = '' - string = (str(boxID) + coin_name + public_key + private_key +webdev_key + - str(amount) + period + str(amountUSD)+ language + str(amount) + - iframeID + str(amountUSD) + userID + user_format + orderID + - str(width) + str(height)) + values_to_combine = [ + str(boxID), coin_name, public_key, private_key, webdev_key, + str(amount), str(amountUSD), period, language, + orderID, userID, user_format, iframeID, + str(width), str(height), + ] + string = '|'.join(values_to_combine) m = hashlib.md5(string.encode('utf-8')) return m.hexdigest() diff --git a/md5hash.pyc b/md5hash.pyc new file mode 100644 index 0000000..92479e1 Binary files /dev/null and b/md5hash.pyc differ