Skip to content

Instantly share code, notes, and snippets.

View 7enderhead's full-sized avatar

7enderhead 7enderhead

View GitHub Profile
@7enderhead
7enderhead / SimpleAuthServer3.py
Last active May 4, 2019 17:44 — forked from fxsjy/SimpleAuthServer.py
SimpleAuthServer: A SimpleHTTPServer with authentication
# Python3 compatible
import http.server
from http.server import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''