fileEncrypt

Encrypt selected files or every non-`.encrypted` file in the current folder using one password.

Function

fileEncrypt(source=None)

Parameters

source

Type: path, iterable of paths, or None

Optional file input. If omitted, every regular file in the current working folder except `.encrypted` files is selected.

Returns

A list of `Path` objects for the encrypted files, or `None` when no files are found.

Examples

Encrypt all eligible files

fileEncrypt()

Encrypt selected files

fileEncrypt(source=["report.pdf", "notes.txt"])

Notes

The password is requested interactively. Do not place sensitive passwords in source code or command history.

Dynamic input behavior

When source is omitted, Toolvix discovers matching files in the current working folder. When source is supplied, only the supplied files are processed. This makes nested pipelines deterministic.

Back to function index · Nesting and chaining