Table of Contents

Interface IDataHashApi

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime.dll

Provides methods to compute the SHA256 hash for the input data.

public interface IDataHashApi : IDslApi

Implements

IDslApi

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IDataHashApi>(IDataHashApi)

Examples

var dataHashApi = ctx.Use<IDataHashApi>();
dataHashApi.Hash(value)

Methods

Hash(string)

Computes the hash value for the plaintext.

string Hash(string plainText)

Parameters

plainText string

The plaintext data to hash.

Returns

string

The computed hash code converted to a string

Hash(byte[])

Computes the hash value for the specified byte array.

byte[] Hash(byte[] plainData)

Parameters

plainData byte[]

The input to compute the hash code for.

Returns

byte[]

The computed hash code.