CH-J Toolsserver management over SSH
Menu
Published source

CH-J Tools

Browse directories and files for a specific application release.

Download source ZIP
CH-J / Server Manager 872 files
core-20261030T220507Z-61e4558d889f Added: · Built:
windows_hash.ps1 Added: Date not recorded 441 B · 7 lines
Code Download file
1param([string]$ArgsJson)
2$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'
3$A = $ArgsJson | ConvertFrom-Json
4$p = [string]$A.path
5if ($p -match '^/[A-Za-z]:') { $p = $p.Substring(1) }
6$h = (Get-FileHash -Algorithm SHA256 -LiteralPath $p).Hash.ToLowerInvariant()
7[Console]::Out.WriteLine('CHJ_RESULT:' + [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes((ConvertTo-Json -InputObject @{ hash = $h } -Compress))))
SHA-256d430e2e73c7640484c999d53d95aebe3a4937b3c86b2adf393cf338c9e122aff

CH-J Proprietary Software License 1.14 · Source is provided under the CH-J Proprietary Software License 1.14. Its availability does not change the license terms or grant additional rights.

Archive SHA-25677380d4805485ffa4027fbe7858b5836f197a4aa9d52358a43e2d12d018744df
Files