A license system and code obfuscator for Python.

Integrated license validation

Users will need a valid product key to use your application or service.

Product key usage dramatization

Getting started

Codeclose is free, open source and distributed under the MIT License.

Read the documentation to learn how to use Codeclose.

Download

How does it work?

Codeclose obfuscates source code to make it unreadable for humans and encrypts it to make it unreadable for machines.

Your customers can only decrypt and run the code with a valid product key, provided by you.

Original source code
def computeFibonacci(n):
    a, b = 0, 1

    for _ in range(n):
        yield a
        a, b = b, a + b
🡫
Obfuscated code
def eval_pow(MemoryError_license):
 (ValueError_issubclass, continue_compile) = (0, 1)
 for _all_quit_ in range(MemoryError_license):
  (yield ValueError_issubclass)
  (ValueError_issubclass, continue_compile) = (continue_compile, (ValueError_issubclass + continue_compile))
🡫
Encrypted code
from ._max_divmod.runtime import IndentationError_SyntaxError
exec(IndentationError_SyntaxError('mHE+isDVh1vos4pTP2Og/wJuh2Q5SNKXSijM4vvyTDvkZPAiF9uv+4+EP6CwlClBsvTLVtdTenTZt2GawvD+wUoqBCk3FCbX4qRelU+cdt5e3K0ukQtlDu2L9DSiYTQ3D0tKuzndXM0zgZA+oR60byhBwQHUivtTSl6Ra7KqmUfLLVspFG/Jx4Tjs1O1OV2YvexOcLEh89qAMOw37dXPngHwASF551DnHe98aK+RD1dq+MZXdCQ4gW7HzQOJBYZsUbA1IUu0GtiO5Uv6Rla7dMqP2xIRRd9T5zvknxdkl6Mt+AEybyOa0LD3aN0jPV9UXY3Vu9ihNRc4zV0KIAYHWjmbVNbHSEhLiPbDG6zJ0L2XYKSKhzOCX3n9Ocksylg/tLgkBQQ3AOQW/68nnun2LQ==', '6VJL8N03wqNwQTejK+oskg==', 297))

Open source – MIT License

Codeclose is free, open source and distributed under the MIT License.

You are free to adapt it to your needs.

Codeclose on Github