C# Класс BitSharper.Sha256Hash

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ZeroHash Sha256Hash

Открытые методы

Метод Описание
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

Описание методов

Duplicate() публичный Метод

public Duplicate ( ) : Sha256Hash
Результат Sha256Hash

Equals() публичный Метод

Returns true if the hashes are equal.
public Equals ( object other ) : bool
other object
Результат bool

GetHashCode() публичный Метод

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
Результат int

Sha256Hash() публичный Метод

Creates a Sha256Hash by wrapping the given byte array. It must be 32 bytes long.
public Sha256Hash ( byte bytes ) : System
bytes byte
Результат System

Sha256Hash() публичный Метод

Creates a Sha256Hash by decoding the given hex string. It must be 64 characters long.
public Sha256Hash ( string @string ) : System
@string string
Результат System

ToBigInteger() публичный Метод

Returns the bytes interpreted as a positive integer.
public ToBigInteger ( ) : BigInteger
Результат Org.BouncyCastle.Math.BigInteger

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

ZeroHash публичное статическое свойство

public static Sha256Hash,BitSharper ZeroHash
Результат Sha256Hash