C# Class BitSharper.Sha256Hash

Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Свойство Type Description
ZeroHash Sha256Hash

Méthodes publiques

Méthode Description
Duplicate ( ) : Sha256Hash
Equals ( object other ) : bool

Returns true if the hashes are equal.

GetHashCode ( ) : int

Hash code of the byte array as calculated by object.GetHashCode. Note the difference between a SHA256 secure bytes and the type of quick/dirty bytes used by the Java hashCode method which is designed for use in bytes tables.

Sha256Hash ( byte bytes ) : System

Creates a Sha256Hash by wrapping the given byte array. It must be 32 bytes long.

Sha256Hash ( string @string ) : System

Creates a Sha256Hash by decoding the given hex string. It must be 64 characters long.

ToBigInteger ( ) : BigInteger

Returns the bytes interpreted as a positive integer.

ToString ( ) : string

Method Details

Duplicate() public méthode

public Duplicate ( ) : Sha256Hash
Résultat Sha256Hash

Equals() public méthode

Returns true if the hashes are equal.
public Equals ( object other ) : bool
other object
Résultat bool

GetHashCode() public méthode

Hash code of the byte array as calculated by object.GetHashCode. Note the difference between a SHA256 secure bytes and the type of quick/dirty bytes used by the Java hashCode method which is designed for use in bytes tables.
public GetHashCode ( ) : int
Résultat int

Sha256Hash() public méthode

Creates a Sha256Hash by wrapping the given byte array. It must be 32 bytes long.
public Sha256Hash ( byte bytes ) : System
bytes byte
Résultat System

Sha256Hash() public méthode

Creates a Sha256Hash by decoding the given hex string. It must be 64 characters long.
public Sha256Hash ( string @string ) : System
@string string
Résultat System

ToBigInteger() public méthode

Returns the bytes interpreted as a positive integer.
public ToBigInteger ( ) : BigInteger
Résultat Org.BouncyCastle.Math.BigInteger

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

ZeroHash public_oe static_oe property

public static Sha256Hash,BitSharper ZeroHash
Résultat Sha256Hash