Skip to content

Instantly share code, notes, and snippets.

@gamikun
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gamikun/d8e5490265123bec27b5 to your computer and use it in GitHub Desktop.
Save gamikun/d8e5490265123bec27b5 to your computer and use it in GitHub Desktop.
Random MD5 service in Python
from binascii import hexlify
from os import urandom
from wsgiref.simple_server import make_server
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return [hexlify(urandom(16))]
make_server('', 8000, app).serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment