Class DataHashApi
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime.dll
public class DataHashApi : IDataHashApi, IDslApi
Inheritance
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<DataHashApi>(DataHashApi)
Constructors
DataHashApi(IDataHasher)
public DataHashApi(IDataHasher dataHasher)
Parameters
dataHasher
IDataHasher
Methods
Hash(string)
Computes the hash value for the plaintext.
public string Hash(string plainText)
Parameters
plainText
string
The plaintext data to hash.
Returns
The computed hash code converted to a string
Hash(byte[])
Computes the hash value for the specified byte array.
public byte[] Hash(byte[] plainData)
Parameters
plainData
byte[]
The input to compute the hash code for.
Returns
byte[]
The computed hash code.