summaryrefslogtreecommitdiff
path: root/make-authstring.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--make-authstring.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/make-authstring.py b/make-authstring.py
new file mode 100644
index 0000000..265c26d
--- /dev/null
+++ b/make-authstring.py
@@ -0,0 +1,10 @@
+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())
+