mirror of
https://github.com/kennethreitz-archive/fallib-service.git
synced 2026-06-05 23:30:19 +00:00
10 lines
168 B
Python
10 lines
168 B
Python
import hashlib
|
|
from markdown import markdown
|
|
|
|
def render(text):
|
|
return unicode(markdown(text))
|
|
|
|
def hash(text):
|
|
return unicode(hashlib.sha1(text).hexdigest())
|
|
|