I-hashi noma i-checksum yefayela liyinani eliyingqayizivele elifingqiwe elibalwe kokuqukethwe kwefayela futhi livame ukusetshenziswa ukubheka ubuqotho nokuvumelana (ukuvumelana) kwamafayela ebhuthini, ikakhulukazi uma kukhulunywa ngamafayela amakhulu (izithombe zesistimu nokunye okunjalo) okungalandwa ngamaphutha noma Kunezinsolo zokuthi ifayela lafakwa esikhundleni se-malware.
Kumasayithi wokulanda, i-Checksum ihlala yethulwa, ibalwa kusetshenziswa ama-algorithms MD5, SHA256 nabanye, ukuvumela ukuthi uqhathanise ifayela elilandiwe nefayela elilayishwe umakhi. Ungasebenzisa izinhlelo zomuntu wesithathu ukubala amasheke wefayela, kepha kukhona indlela yokwenza lokhu ngamathuluzi ajwayelekile we-Windows 10, 8 ne-Windows 7 (PowerShell inguqulo 4.0 kuya phezulu iyadingeka) - usebenzisa i-PowerShell noma umugqa womyalo, ozokhonjiswa kwimiyalo.
Ukutholwa kwesheke lefayili usebenzisa iWindows
Okokuqala udinga ukuqala iWindows PowerShell: indlela elula kunazo zonke ukusebenzisa usesho kubha yomsebenzi we-Windows 10 noma imenyu ye-Windows 7 Start ukwenza lokhu.
Umyalo wokubala i-hash yefayela eliku-PowerShell uwukuthi Thola-filehash, futhi ukuyisebenzisa ukubala amasheke, mane nje ufake yona nemingcele elandelayo (ngokwesibonelo, i-hash ibalwa isithombe se-ISO Windows 10 kusuka kufolda ye-VM ku-drive C):
Thola i-FileHash C: VM Win10_1607_Russian_x64.iso | Uhlu lwefomethi
Lapho usebenzisa umyalo kuleli fomu, i-hash ibalwa kusetshenziswa i-SHA256 algorithm, kepha ezinye izinketho ziyasekelwa, ezingasethwa kusetshenziswa ipharamitha le--Algorithm, ngokwesibonelo, ukubala isheke le-MD5, umyalo uzobukeka njengesibonelo esingezansi
Thola i-FileHash C: VM Win10_1607_Russian_x64.iso -Algorithm MD5 | Uhlu lwefomethi
Amanani alandelayo asekelwa ama-algorithms we-Checksum kuWindows PowerShell.
- I-SHA256 (okuzenzakalelayo)
- MD5
- SHA1
- SHA384
- SHA512
- IMINININGWANEDES
- I-RIPEMD160
Imininingwane eningilizayo yes syntax yomyalo we-Get-FileHash iyatholakala futhi kuwebhusayithi esemthethweni //technet.microsoft.com/en-us/library/dn520872(v=wps.650).aspx
Ukubuyisa i-hash yefayela emgqeni womyalo kusetshenziswa i-CertUtil
I-Windows inesisetshenziswa seCertUtil esakhelwe ngaphakathi ekusebenzeni nezitifiketi, okuthi, phakathi kokunye, ukubala amasheke wamafayili kusetshenziswa ama-algorithms alandelayo:
- MD2, MD4, MD5
- I-SHA1, SHA256, SHA384, SHA512
Ukuze usebenzise umsebenzi, vele usebenzise iWindows 10, 8 noma iWindows 7 command command bese ufaka umyalo ngefomethi:
certutil -hashfile file_path algorithm
Isibonelo sokuthola i-MD5 hashi yefayela sikhonjiswe esithombeni esingezansi.
Ngokwengeziwe: uma udinga izinhlelo zenkampani yangaphandle ukubala ama-hashes wefayela ku-Windows, unganaka i-SlavaSoft HashCalc.
Uma udinga ukubheka amasheke ku-Windows XP noma ku-Windows 7 ngaphandle kweS PowerShell 4 (kanye nekhono lokuyifaka), ungasebenzisa i-Microsoft File Checksum Integrity Verifier-line useility, etholakalayo ukulanda kuwebhusayithi esemthethweni //www.microsoft.com/en -us / download / imininingwane.aspx? id = 11533 (ifomethi yomyalo wokusebenzisa isebenziso: fciv.exe file_path - umphumela uzoba yi-MD5. Ungaba futhi ukubala kwe-SHA1 hash: fciv.exe -sha1 file_path)