# StableHash Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.stablehash/)

## ComputeHash(ReadOnlySpan&lt;byte&gt;) {#computehash-system-readonlyspan-byte-6665ca17}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.stablehash/methods/computehash-system-readonlyspan-byte-6665ca17/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/StableHash.cs)

```csharp
public static uint ComputeHash(ReadOnlySpan<byte> data)
```

Computes a hash digest of the input.

### Parameters

- `data` (`ReadOnlySpan<byte>`): The input data.

### Returns

A hash digest of the input.

## ComputeHash(string) {#computehash-string-5ed27b28}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.stablehash/methods/computehash-string-5ed27b28/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/StableHash.cs)

```csharp
public static uint ComputeHash(string data)
```

Computes a hash digest of the input.

### Parameters

- `data` (`string`): The input data.

### Returns

A hash digest of the input.
