# IHasher

Package: [Microsoft.Orleans.Persistence.AdoNet](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Persistence.AdoNet) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Persistence.AdoNet/Storage/Provider/IHasher.cs#L8)

```csharp
public interface IHasher
```

An interface for all the hashing operations currently in Orleans Storage operations.

## Remarks

Implement this to provide a hasher for database key with specific properties. As for an example: collision resistance on out-of-control ID providers.

## Properties

- [Description](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/orleans.storage.ihasher/properties/description-1026a0f7/)

## Methods

- [Hash(byte[])](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/orleans.storage.ihasher/methods/hash-byte-array-1-ac757d34/)
