eexec¶
fontTools.misc.eexec.py – Module implementing the eexec and charstring encryption algorithm as used by PostScript Type 1 fonts.
-
fontTools.misc.eexec.
decrypt
(cipherstring, R)[source]¶ >>> testStr = b"\0\0asdadads asds\265" >>> decryptedStr, R = decrypt(testStr, 12321) >>> decryptedStr == b'0d\nh\x15\xe8\xc4\xb2\x15\x1d\x108\x1a<6\xa1' True >>> R == 36142 True