System.Security.Policy.Hash.GenerateHash C# (CSharp) Method

GenerateHash() public method

public GenerateHash ( HashAlgorithm hashAlg ) : byte[]
hashAlg System.Security.Cryptography.HashAlgorithm
return byte[]
        public byte[] GenerateHash(HashAlgorithm hashAlg) { return null; }
        public void GetObjectData(SerializationInfo info, StreamingContext context) { }

Same methods

Hash::GenerateHash ( System hashAlg ) : byte[]

Usage Example

		public void FixtureSetUp () 
		{
			Assembly a = Assembly.GetExecutingAssembly ();
			hashEvidence = new Hash (a);

			md5 = MD5.Create ();
			digestMd5 = hashEvidence.GenerateHash (md5);

			sha1 = SHA1.Create ();
			digestSha1 = hashEvidence.GenerateHash (sha1);
		}
All Usage Examples Of System.Security.Policy.Hash::GenerateHash