File Verification Explained
Thanks to ExpressVPN for sponsoring today's video. Go to https://strms.net/expressvpn_thehowtoguy123 to get your first 3 months free! #ad
This video help you out? How about buying me a coffee: https://www.buymeacoffee.com/TheHowToGuy123
Discord Server: https://discord.gg/3s6gdtx
Twitter: https://twitter.com/Kyle_HTG
Instagram: https://www.instagram.com/thehowtoguy123/
File Hash Verification Script:
@echo off
set /p FILEPATH=Enter file path:
set /p EXPECTED_HASH=Enter expected hash:
set /p HASH_TYPE=Enter hash type (MD5, SHA1, or SHA256):
for /f %%H in ('powershell -command "(Get-FileHash '%FILEPATH%' -Algorithm %HASH_TYPE%).Hash"') do (
set ACTUAL_HASH=%%H
)
set ACTUAL_HASH=%ACTUAL_HASH:~0,64%
set EXPECTED_HASH=%EXPECTED_HASH:~0,64%
echo The Expected Hash is: %EXPECTED_HASH%
echo The Verified Hash is: %ACTUAL_HASH%
if /i "%ACTUAL_HASH%"=="%EXPECTED_HASH%" (
echo Hashes match
) else (
echo Hashes do not match
)
Music:
Music track: Onion by Lukrembo
Source: https://freetouse.com/music
Copyright Free Music for Videos
Music track: Biscuit by Lukrembo
Source: https://freetouse.com/music
Free Background Music for Video
This video is for educational purposes. I'm not responsible for any damages! Follow at your own risk!
Видео File Verification Explained канала TheHowToGuy123
This video help you out? How about buying me a coffee: https://www.buymeacoffee.com/TheHowToGuy123
Discord Server: https://discord.gg/3s6gdtx
Twitter: https://twitter.com/Kyle_HTG
Instagram: https://www.instagram.com/thehowtoguy123/
File Hash Verification Script:
@echo off
set /p FILEPATH=Enter file path:
set /p EXPECTED_HASH=Enter expected hash:
set /p HASH_TYPE=Enter hash type (MD5, SHA1, or SHA256):
for /f %%H in ('powershell -command "(Get-FileHash '%FILEPATH%' -Algorithm %HASH_TYPE%).Hash"') do (
set ACTUAL_HASH=%%H
)
set ACTUAL_HASH=%ACTUAL_HASH:~0,64%
set EXPECTED_HASH=%EXPECTED_HASH:~0,64%
echo The Expected Hash is: %EXPECTED_HASH%
echo The Verified Hash is: %ACTUAL_HASH%
if /i "%ACTUAL_HASH%"=="%EXPECTED_HASH%" (
echo Hashes match
) else (
echo Hashes do not match
)
Music:
Music track: Onion by Lukrembo
Source: https://freetouse.com/music
Copyright Free Music for Videos
Music track: Biscuit by Lukrembo
Source: https://freetouse.com/music
Free Background Music for Video
This video is for educational purposes. I'm not responsible for any damages! Follow at your own risk!
Видео File Verification Explained канала TheHowToGuy123
Комментарии отсутствуют
Информация о видео
10 апреля 2023 г. 21:46:36
00:09:52
Другие видео канала