diff options
Diffstat (limited to 'make-authstring.py')
-rw-r--r-- | make-authstring.py | 10 |
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()) + |