Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (26 sloc) 833 Bytes
python -> CSS font obfuscator
by n.bush
import string
import random
def mess_maker(size=6, chars=string.ascii_uppercase + string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for x in range(size))
def headache(text):
charlist = list(text)
obfuscated = []
class_a = mess_maker(10)
class_b = mess_maker(10)
css = """
span.%s {}
span.%s {color: transparent; letter-spacing:-1em;}
""" % (class_a, class_b)
for i in charlist:
mess = mess_maker(10)
span = '<span class="%s">%s</span><span class="%s">%s</span>' % (class_a, i, class_b, mess)
return ''.join(obfuscated)
print headache("Hi. This is copyable. Not.")
You can’t perform that action at this time.