From db39c8e4c85397e35971019e252da6e847c6fcc4 Mon Sep 17 00:00:00 2001 From: Lalit Rohilla <167332240+21Lalit@users.noreply.github.com> Date: Sun, 15 Dec 2024 16:46:39 +0530 Subject: [PATCH] Update Readme.md --- File Integrity Checker/Readme.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/File Integrity Checker/Readme.md b/File Integrity Checker/Readme.md index b160d3e..9c39620 100644 --- a/File Integrity Checker/Readme.md +++ b/File Integrity Checker/Readme.md @@ -57,8 +57,15 @@ Steps: 6. If files match: The received file matches the original file. No changes detected. 7. If files differ: The received file has been changed! -🖥️ Code Breakdown +### 🖥️ Expected Results +You can view an example of the expected results + +![Expected Results](https://github.com/21Lalit/Powershell-Scripting/blob/main/File%20Integrity%20Checker/Expected-Results.png) +--- + +## 🖥️ Code Breakdown Function: Get-FileHashValue + Computes the SHA-256 hash value of a given file. --- @@ -67,6 +74,7 @@ function Get-FileHashValue { param ([string]$filePath) return (Get-FileHash -Path $filePath -Algorithm "SHA256").Hash } + Function: Compare-Files Prompts the user for file paths, validates them, computes hashes, and compares the results.