╔══════════════════════════════════════════════════════════════════╗
║  OneDrive Removal Suite - File Verification Guide               ║
╚══════════════════════════════════════════════════════════════════╝

WHAT IS FILE VERIFICATION?
───────────────────────────
File verification ensures that the files you downloaded haven't been
corrupted or modified. This is especially important when downloading
security-sensitive scripts from the internet.

CHECKING INTEGRITY (Windows PowerShell)
────────────────────────────────────────

METHOD 1: Using PowerShell (Recommended)
─────────────────────────────────────────
1. Extract the ZIP file to a folder
2. Open PowerShell in that folder (Shift+Right-click → Open PowerShell)
3. Copy and paste this command:

   (Get-FileHash OneDrive-Removal-Suite.ps1 -Algorithm SHA256).Hash

4. Compare the output with the hash below under "EXPECTED HASHES"

If they match, your file is verified ✓


METHOD 2: Using Windows Command Prompt
────────────────────────────────────────
1. Extract the ZIP file to a folder
2. Open Command Prompt in that folder (Shift+Right-click → Open CMD)
3. Copy and paste this command:

   certutil -hashfile OneDrive-Removal-Suite.ps1 SHA256

4. Compare the output with the hash below


METHOD 3: Using the Included SHA256SUMS File
──────────────────────────────────────────────
1. Extract the ZIP file to a folder
2. Open PowerShell in that folder
3. Copy and paste this command:

   Get-Content SHA256SUMS | % { 
       $expected = $_.Split()[0]
       $file = $_.Split()[1]
       $actual = (Get-FileHash $file -Algorithm SHA256).Hash
       if ($actual -eq $expected) { "✓ $file - OK" } 
       else { "✗ $file - FAILED" }
   }

This will check ALL files at once.


EXPECTED HASHES
────────────────

OneDrive-Removal-Suite.ps1:
  e18e6b1e2762c189ceaac8a064e9273a72e2491f4ee19476daff06ce8ebe886f

README.md:
  b46e3df8a42118d5a5a843a4831595ef209b830ac09d127720a52ccc3bcd3f83

SHA256SUMS:
  This file contains hashes for verification of other files


WHAT IF HASHES DON'T MATCH?
─────────────────────────────
If the hashes don't match, something went wrong:
  1. Try downloading again from the official source
  2. Check your internet connection for corruption during download
  3. Make sure you extracted ALL files from the ZIP
  4. Verify you're checking the correct files

DO NOT RUN the script if hashes don't match.


WHY SHA256?
────────────
SHA256 is a cryptographic hash function that:
  ✓ Detects even single-character changes in files
  ✓ Prevents accidental corruption during download
  ✓ Detects intentional tampering with files
  ✓ Is industry standard (used by Windows, Linux, etc.)


WINDOWS DEFENDER / SMARTSCREEN
───────────────────────────────
If Windows blocks the script with "SmartScreen warning":

This is normal for unsigned PowerShell scripts. You can safely:
  1. Click "More info"
  2. Click "Run anyway"

The script is safe if hashes match.


QUESTIONS?
───────────
Check the README.md file for full documentation.
