semvec/pypi-packages huggingface dataset:
rlxcrypt 0.0.7
seamlessly encrypt, distribute and load python modules
License: MIT


rlxcrypt
========


seamlessly encrypt, distribute and load python modules

## Usage

you have a `.py` file that you want to distribute such as
    
     |
     +- mymodule.py
     +- main.py

and in `main.py` you use it:

    # main.py
    import mymodule as m  
    m.some_func()

to distribute `module.py` encrypted (in a shell):

    > rlxcrypt encrypt mymodule.py
    > mv mymodule.py some_private_folder

so you have

    |
    +- mymodule.pye
    +- main.py

and then in `main.py`

    # main.py
    import rlxcrypt
    import mymodule as m  
    m.some_func()


## Notes

- `rlxcrypt` uses RSA encryption as part of the import hooks to detect encrypted files and decrypts them on the fly during the import process.
- `rlxcrypt` is distributed only as a binary for your architecture, which contains all mechanics to encrypt and decrypt.
- `rlxcrypt` sources are obfuscated in several custom steps (no public obfuscation library is used) and then compiled into binary code.
- it is not 100% bullet proof, it just makes it very hard to crack as it would require to reverse engineer the binary file AND the obfuscation logic.