---
title: "hash(bytes:)"
framework: cryptokit
role: symbol
role_heading: Type Method
path: "cryptokit/hashfunction/hash(bytes:)"
---

# hash(bytes:)

Computes a digest of a span of bytes.

## Declaration

```swift
@export(implementation) static func hash(bytes: RawSpan) -> Self.Digest
```

## Parameters

- `bytes`: The bytes to be hashed.

## Return Value

Return Value The computed digest.
