# Cuvex: local SHA-256 verification; no network or installation. & { $folder = $PSScriptRoot $file = Join-Path $folder 'Cuvex-Desktop-1.0.0-beta.9.14.1-Windows-x64.zip' Write-Host 'ĐANG KIỂM TRA TỆP CUVEX…' -ForegroundColor Cyan Write-Host ('Tệp đã tải xuống: ' + $file) if (-not (Test-Path -LiteralPath $file -PathType Leaf)) { Write-Host 'KO (FAIL) — KHÔNG TÌM THẤY TỆP' -ForegroundColor Red Write-Host 'Kiểm tra tải xuống đã hoàn tất và tệp nằm trong thư mục Tải xuống với tên gốc.' -ForegroundColor White $global:LASTEXITCODE = 1 return } try { $actual = (Get-FileHash -Algorithm SHA256 -ErrorAction Stop -LiteralPath $file).Hash Write-Host '' Write-Host '========================================' Write-Host 'KẾT QUẢ XÁC MINH CUVEX' -ForegroundColor Cyan if ($actual -eq '62f069f00993ddb9381bae25edf7fbdab913e41cf4f903e4e797cca6e263624a') { Write-Host 'OK — ĐÃ XÁC MINH TỆP' -ForegroundColor Green Write-Host 'Tệp khớp với SHA-256 chúng tôi công bố cho phiên bản này. Kiểm tra tính toàn vẹn đã hoàn tất thành công.' -ForegroundColor White $global:LASTEXITCODE = 0 return } } catch {} Write-Host 'KO (FAIL) — KHÔNG MỞ TỆP NÀY' -ForegroundColor Red Write-Host 'Tệp không khớp mã băm đã công bố. Tải lại từ Cuvex và kiểm tra lại. Nếu vẫn thất bại, liên hệ sato@cuvex.io.' -ForegroundColor White $global:LASTEXITCODE = 1 } exit $global:LASTEXITCODE