A protected file is a file your program cannot run without, kept on the server and given only to a signed-in program (App settings → Files). The .NET and Python SDKs now fetch them:
- .NET: PWFAuth 1.8.0 on NuGet.
GetResourceAsync(name)fetches a file, andLoadModuleAsync(name)loads a .NET dll flagged as a module straight from memory - Python: pwfauth 1.6.0 on PyPI.
get_resource(name)returns the file as bytes - Both check the file against the SHA-256 the server sends, and a file locked to an add-on goes only to customers who have it
Each customer's copy carries their own mark, so a copy that runs leads back to a key. The signing key and the rest of the API are the same: dotnet add package PWFAuth --version 1.8.0 or pip install -U pwfauth