mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 14:07:20 +02:00
Added MD5.ps1 and SHA1.ps1
This commit is contained in:
12
Scripts/SHA1.ps1
Normal file
12
Scripts/SHA1.ps1
Normal file
@ -0,0 +1,12 @@
|
||||
#!/snap/bin/powershell
|
||||
#
|
||||
# Syntax: SHA1.ps1 <file>
|
||||
# Description: prints the SHA1 checksum of the given file
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
#
|
||||
param([string]$File)
|
||||
$Result = get-filehash $File -algorithm SHA1
|
||||
write-host $Result.Hash
|
||||
exit 0
|
Reference in New Issue
Block a user