Click or drag to resize

Sha256 Class

Secure Hash 256 Algorithm (SHA-256)
Inheritance Hierarchy
SystemObject
  CryptoSysAPISha256

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public class Sha256

The Sha256 type exposes the following members.

Properties
 NameDescription
Public propertyErrCode Last error code (for Init, AddData and HexDigest methods only)
Top
Methods
 NameDescription
Public methodAddData(Byte) Adds an array of 8-bit bytes to the digest
Public methodAddData(String) Adds a string of Ansi characters to the digest
Public methodStatic memberBytesHash Creates message digest as array of bytes from message in byte array
Public methodDispose Dispose of this object and clear any stored data
Public methodStatic memberFileHexHash Creates hash digest of a binary file
Public methodStatic memberFileTextHexHash Creates hash digest of a "text" file treating CR-LF pairs as a single newline char
Public methodHexDigest Computes final message digest in hex format
Public methodStatic memberHexHash(Byte) Creates message digest in hex format from message in byte array
Public methodStatic memberHexHash(String) Creates message digest in hex format from message in Ansi string
Public methodStatic memberHmac(Byte, Byte) Computes the keyed hash digest of binary data using HMAC algorithm
Public methodStatic memberHmac(String, String) Computes the keyed hash digest using HMAC algorithm passing data as hex strings
Public methodInit Initializes the context
Public methodStatic memberInstance Create the one and only instance
Public methodReset Resets the context
Top
See Also