System.Security.Policy.Hash.GenerateHash Method

Computes the hash value for the assembly using the specified hash algorithm.

Syntax

public byte[] GenerateHash (System.Security.Cryptography.HashAlgorithm hashAlg)

Parameters

hashAlg
The hash algorithm to use to compute the hash value for the assembly.

Returns

A byte array that represents the hash value for the assembly.

Remarks

The assembly specified in the class constructor provides the bytes for computing the hash value. The hashAlg parameter is an object derived from a specific System.Security.Cryptography.HashAlgorithm. The returned hash value is of the type identified by hashAlg.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0