---
title: Check for viruses using Virus Total
summary: Sha256 hash a file upload and test the hash against the VirusTotal API
url: https://www.fastly.com/documentation/solutions/examples/check-for-viruses-using-virus-total
---

Sha256 hash a file upload and test the hash against the VirusTotal API

## Compute

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/1e740de4)

