Last active
August 29, 2015 14:15
-
-
Save gamikun/d8e5490265123bec27b5 to your computer and use it in GitHub Desktop.
Random MD5 service in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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