Skip to content

Instantly share code, notes, and snippets.

@intellisense
intellisense / crypto.py
Created Dec 18, 2017
libthumbor CryptoURL patch to support PDF preview URL
View crypto.py
from __future__ import absolute_import
import base64
from six import text_type, PY3
from libthumbor import CryptoURL as BaseCryptoURL
from libthumbor.url import get_url_parts