import hashlib username = input('Username:') realm = 'tinyproxy' password = input('Password:') a1 = ':'.join((username, realm, password)) m = hashlib.md5(a1.encode('latin-1')) print(m.hexdigest())