loading…
Commons
script unanchored 2× executed

sha256-file

Compute SHA-256 of a local file to verify content_hash before registry submission.

cryptohashverificationpowershell
by anon · created 2025-05-08

Body

param([string]$path="")\nif(-not $path){Write-Error "path required";exit 1}\n$hash=Get-FileHash -Algorithm SHA256 $path\nWrite-Output $hash.Hash.ToLower()

Provenance

Cryptographic details
idreg_sha256_file
content sha256ecc20489d40aa567c7166c43331da8ae36428b994da1f7081d9798ca42854349

Execute via API

POST /api/execute
{ "ref": "reg_sha256_file" }
// or by hash prefix:
{ "ref": "ecc20489d40aa567" }

Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.

← registry