small corrections
This commit is contained in:
@@ -82,7 +82,7 @@ uv run python-encrypt-code generate-password
|
||||
Encrypt a Python module or package directory.
|
||||
|
||||
```bash
|
||||
uv run python-encrypt-code encrypt <source_path> -o <output.pec> -p <password> [-aad <json-string>]
|
||||
uv run python-encrypt-code encrypt <source> -o <output> -p <password> [-aad <json-string>]
|
||||
```
|
||||
|
||||
**Options:**
|
||||
@@ -97,12 +97,12 @@ uv run python-encrypt-code encrypt <source_path> -o <output.pec> -p <password> [
|
||||
Decrypt a file and extract contents to disk.
|
||||
|
||||
```bash
|
||||
uv run python-encrypt-code decrypt <encrypted_file> -o <output_dir>
|
||||
uv run python-encrypt-code decrypt <source> -o <output>
|
||||
```
|
||||
|
||||
**Options:**
|
||||
|
||||
- `encrypted.pec`: Path to encrypted file
|
||||
- `source`: Path to encrypted file
|
||||
- `-o, --output`: Directory to extract decrypted files
|
||||
|
||||
### `run-insecure`
|
||||
@@ -111,13 +111,13 @@ Decrypt and execute a Python script from an encrypted package.
|
||||
**N.B. this writes decrypted files to a temporary folder on the disk before executing!**
|
||||
|
||||
```bash
|
||||
uv run python-encrypt-code run-insecure <encrypted_file> --script <script_name>
|
||||
uv run python-encrypt-code run-insecure <source> --script <script>
|
||||
```
|
||||
|
||||
**Options:**
|
||||
|
||||
- `encrypted.pec`: Path to encrypted file
|
||||
- `-s, --script`: Python script to execute (default: `main.py`)
|
||||
- `source`: Path to encrypted file
|
||||
- `-s, --script`: Python script to execute
|
||||
|
||||
## Use Cases
|
||||
|
||||
@@ -129,8 +129,8 @@ export PASSWORD=$(uv run python-encrypt-code generate-password)
|
||||
uv run python-encrypt-code encrypt ./my_app -o my_app.pec -p ${PASSWORD}
|
||||
|
||||
# Setup your own authentication source and subclass the PasswordProvider
|
||||
# Distribute the .pec file to customers and let
|
||||
# them run it without seeing the source code
|
||||
# Distribute the .pec file to customers and
|
||||
# let them run it without seeing the source code
|
||||
uv run python-encrypt-code run-insecure ./my_app.pec -p ${PASSWORD} --script main.py
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user