Skip to content

Instantly share code, notes, and snippets.

@srinivas-adivi
srinivas-adivi / htpasswd.py
Created October 10, 2012 14:34 — forked from eculver/htpasswd.py
htpasswd script in python (no need to install apache utils)
#!/usr/local/bin/python
"""Replacement for htpasswd"""
# Original author: Eli Carter
import os
import sys
import random
from optparse import OptionParser
# We need a crypt module, but Windows doesn't have one by default. Try to find
package main
import (
"fmt"
"net/http"
"sync"
"time"
)
func basics() {