Class Hash
Inheritance
System.Object
Hash
Implements
System.Runtime.Serialization.ISerializable
Assembly: IronZip.dll
Syntax
public sealed class Hash : EvidenceBase
Constructors
Hash(Assembly)
Declaration
public Hash(Assembly assembly)
Parameters
| Type |
Name |
Description |
| System.Reflection.Assembly |
assembly |
|
Properties
MD5
Declaration
public byte[] MD5 { get; }
Property Value
| Type |
Description |
| System.Byte[] |
|
SHA1
Declaration
public byte[] SHA1 { get; }
Property Value
| Type |
Description |
| System.Byte[] |
|
SHA256
Declaration
public byte[] SHA256 { get; }
Property Value
| Type |
Description |
| System.Byte[] |
|
Methods
CreateMD5(Byte[])
Declaration
public static Hash CreateMD5(byte[] md5)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
md5 |
|
Returns
CreateSHA1(Byte[])
Declaration
public static Hash CreateSHA1(byte[] sha1)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
sha1 |
|
Returns
CreateSHA256(Byte[])
Declaration
public static Hash CreateSHA256(byte[] sha256)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
sha256 |
|
Returns
GenerateHash(HashAlgorithm)
Declaration
public byte[] GenerateHash(HashAlgorithm hashAlg)
Parameters
| Type |
Name |
Description |
| System.Security.Cryptography.HashAlgorithm |
hashAlg |
|
Returns
| Type |
Description |
| System.Byte[] |
|
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Implements
System.Runtime.Serialization.ISerializable