dartokloning / Check hash file in Windows

0 likes
0 forks
1 files
Last active 1791324749
Put this in your Environment Path of your windows and run with command: hash <filename> <cryptographic>. Example: hash .\refurbished_furniture.common.mixins.json sha384
1 param(
2 [Parameter(Mandatory = $true, Position = 0)]
3 [string]$File,
4
5 [Parameter(Mandatory = $false, Position = 1)]
6 [ValidateSet("MD5", "SHA1", "SHA256", "SHA384", "SHA512")]
7 [string]$Algorithm = "SHA384"
8 )
9
10 if (-not (Test-Path -LiteralPath $File -PathType Leaf)) {
Newer Older