mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 09:04:18 +01:00
Rename to get-sha1.ps1 and get-sha256.ps1
This commit is contained in:
parent
bd76412d58
commit
db0e0d37e5
@ -71,6 +71,8 @@ encrypt-file.ps1, encrypts the given file
|
||||
fetch-repo.ps1, fetches updates for the current/given Git repository (including submodules)
|
||||
fetch-repos.ps1, fetches updates for all Git repositories under the current/given directory (including submodules)
|
||||
get-md5.ps1, prints the MD5 checksum of the given file
|
||||
get-sha1.ps1, prints the SHA1 checksum of the given file
|
||||
get-sha256.ps1, prints the SHA256 checksum of the given file
|
||||
hibernate.ps1, enables hibernate mode for the local computer (needs admin rights)
|
||||
inspect-exe.ps1, prints basic information of the given executable file
|
||||
install-github-cli.ps1, installs GitHub CLI
|
||||
@ -195,8 +197,6 @@ send-udp.ps1, sends a UDP datagram message to the given IP address and port
|
||||
set-profile.ps1, updates your PowerShell user profile
|
||||
set-timer.ps1, sets a timer for a countdown
|
||||
set-wallpaper.ps1, sets the given image as wallpaper
|
||||
SHA1.ps1, prints the SHA1 checksum of the given file
|
||||
SHA256.ps1, prints the SHA256 checksum of the given file
|
||||
simulate-matrix.ps1, simulates the Matrix (fun)
|
||||
simulate-presence.ps1, simulates the human presence against burglars
|
||||
speak-checklist.ps1, speaks the given checklist by text-to-speech (TTS)
|
||||
|
Can't render this file because it has a wrong number of fields in line 85.
|
@ -151,6 +151,9 @@ Mega Collection of PowerShell Scripts
|
||||
| [download-file.ps1](Scripts/download-file.ps1) | Downloads a file from the given URL | [Help](Docs/download-file.ps1.md) |
|
||||
| [edit.ps1](Scripts/edit.ps1) | Edits the given file with the built-in text editor | [Help](Docs/edit.ps1.md) |
|
||||
| [encrypt-file.ps1](Scripts/encrypt-file.ps1) | Encrypts the given file | [Help](Docs/encrypt-file.ps1.md) |
|
||||
| [get-md5.ps1](Scripts/get-md5.ps1) | Prints the MD5 checksum of the given file | [Help](Docs/get-md5.ps1.md) |
|
||||
| [get-sha1.ps1](Scripts/get-sha1.ps1) | Prints the SHA1 checksum of the given file | [Help](Docs/get-sha1.ps1.md) |
|
||||
| [get-sha256.ps1](Scripts/get-sha256.ps1) | Prints the SHA256 checksum of the given file | [Help](Docs/get-sha256.ps1.md) |
|
||||
| [inspect-exe.ps1](Scripts/inspect-exe.ps1) | Prints basic information of the given executable file | [Help](Docs/inspect-exe.ps1.md) |
|
||||
| [list-dir.ps1](Scripts/list-dir.ps1) | Lists the directory content (formatted in columns) | [Help](Docs/list-dir.ps1.md) |
|
||||
| [list-dir-tree.ps1](Scripts/list-dir-tree.ps1) | Lists the directory tree content | [Help](Docs/list-dir-treep.ps1.md) |
|
||||
@ -162,7 +165,6 @@ Mega Collection of PowerShell Scripts
|
||||
| [list-unused-files.ps1](Scripts/list-unused-files.ps1) | Lists unused files in a directory tree | [Help](Docs/list-unused-files.ps1.md) |
|
||||
| [list-workdir.ps1](Scripts/list-workdir.ps1) | Lists the current working directory | [Help](Docs/list-workdir.ps1.md) |
|
||||
| [make-install.ps1](Scripts/make-install.ps1) | Installs built executables and libs to the installation directory | [Help](Docs/make-install.ps1.md) |
|
||||
| [get-md5.ps1](Scripts/get-md5.ps1) | Prints the MD5 checksum of the given file | [Help](Docs/get-md5.ps1.md) |
|
||||
| [new-shortcut.ps1](Scripts/new-shortcut.ps1) | Creates a new shortcut | [Help](Docs/new-shortcut.ps1.md) |
|
||||
| [new-symlink.ps1](Scripts/new-symlink.ps1) | Creates a new symbolic link | [Help](Docs/new-symlink.ps1.md) |
|
||||
| [new-zipfile.ps1](Scripts/new-zipfile.ps1) | Creates a new .zip file from a directory | [Help](Docs/new-zipfile.ps1.md) |
|
||||
@ -170,8 +172,6 @@ Mega Collection of PowerShell Scripts
|
||||
| [remove-empty-dirs.ps1](Scripts/remove-empty-dirs.ps1) | Removes empty subfolders within the given directory tree | [Help](Docs/remove-empty-dirs.ps1.md) |
|
||||
| [search-filename.ps1](Scripts/search-filename.ps1) | Searches the directory tree for filenames by given pattern | [Help](Docs/search-filename.ps1.md) |
|
||||
| [search-files.ps1](Scripts/search-files.ps1) | Searches the given pattern in the given files | [Help](Docs/search-files.ps1.md) |
|
||||
| [SHA1.ps1](Scripts/SHA1.ps1) | Prints the SHA1 checksum of the given file | [Help](Docs/SHA1.ps1.md) |
|
||||
| [SHA256.ps1](Scripts/SHA256.ps1) | Prints the SHA256 checksum of the given file | [Help](Docs/SHA256.ps1.md) |
|
||||
| [upload-file.ps1](Scripts/upload-file.ps1) | Uploads the local file to the given FTP server | [Help](Docs/upload-file.ps1.md) |
|
||||
|
||||
♻️ Scripts to Convert Files
|
||||
|
@ -1,22 +1,22 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
SHA1.ps1 [<file>]
|
||||
get-sha1.ps1 [<file>]
|
||||
.DESCRIPTION
|
||||
Prints the SHA1 checksum of the given file.
|
||||
Prints the SHA1 checksum of the given file
|
||||
.EXAMPLE
|
||||
PS> .\SHA1.ps1 C:\MyFile.txt
|
||||
PS> .\get-sha1.ps1 C:\MyFile.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
param([string]$File = "")
|
||||
param([string]$file = "")
|
||||
|
||||
try {
|
||||
if ($File -eq "" ) { $File = read-host "Enter the filename" }
|
||||
if ($file -eq "" ) { $file = read-host "Enter the filename" }
|
||||
|
||||
$Result = get-filehash $File -algorithm SHA1
|
||||
$Result = get-filehash $file -algorithm SHA1
|
||||
|
||||
"✔️ SHA1 hash is" $Result.Hash
|
||||
exit 0
|
@ -1,22 +1,22 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
SHA256.ps1 [<file>]
|
||||
get-sha256.ps1 [<file>]
|
||||
.DESCRIPTION
|
||||
Prints the SHA256 checksum of the given file.
|
||||
Prints the SHA256 checksum of the given file
|
||||
.EXAMPLE
|
||||
PS> .\SHA256.ps1 C:\MyFile.txt
|
||||
PS> .\get-sha256.ps1 C:\MyFile.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
param([string]$File = "")
|
||||
param([string]$file = "")
|
||||
|
||||
try {
|
||||
if ($File -eq "" ) { $File = read-host "Enter the filename" }
|
||||
if ($file -eq "" ) { $file = read-host "Enter the filename" }
|
||||
|
||||
$Result = get-filehash $File -algorithm SHA256
|
||||
$Result = get-filehash $file -algorithm SHA256
|
||||
|
||||
"✔️ SHA256 hash is:" $Result.Hash
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user