SHA2 Class
Namespace: Stimulsoft.System.Crypt
Methods
| Method | Returns | Description | |
|---|---|---|---|
SHA256 static |
number[] | ||
| SHA2_224 | string | Hashes the supplied string data using SHA2-224. | |
| SHA2_256 | string | number[] | Hashes the supplied string data using SHA2-256. |
| SHA2_384 | string | number[] | Hashes the supplied string data using SHA2-384. |
| SHA2_512 | string | number[] | Hashes the supplied string data using SHA2-512. |
| SHA2_512_224 | string | Hashes the supplied string data using SHA2-512/224. | |
| SHA2_512_256 | string | Hashes the supplied string data using SHA2-512/256. |
Method Details
SHA256 static
SHA256(sData: number[]): number[]
Parameters
- sData (number[])
Returns number[]
SHA2_224
SHA2_224(sData: string): string
Hashes the supplied string data using SHA2-224.
Parameters
- sData (string) — Specifies the data to hash.
Returns string — Returns the hash string.
SHA2_256
SHA2_256(sData: string | number[]): string | number[]
Hashes the supplied string data using SHA2-256.
Parameters
- sData (string | number[]) — Specifies the data to hash.
Returns string | number[] — Returns the hash string.
SHA2_384
SHA2_384(sData: string | number[]): string | number[]
Hashes the supplied string data using SHA2-384.
Parameters
- sData (string | number[]) — Specifies the data to hash.
Returns string | number[] — Returns the hash string.
SHA2_512
SHA2_512(sData: string | number[]): string | number[]
Hashes the supplied string data using SHA2-512.
Parameters
- sData (string | number[]) — Specifies the data to hash.
Returns string | number[] — Returns the hash string.
SHA2_512_224
SHA2_512_224(sData: string): string
Hashes the supplied string data using SHA2-512/224.
Parameters
- sData (string) — Specifies the data to hash.
Returns string — Returns the hash string.
SHA2_512_256
SHA2_512_256(sData: string): string
Hashes the supplied string data using SHA2-512/256.
Parameters
- sData (string) — Specifies the data to hash.
Returns string — Returns the hash string.
Fields
| Field | Type | Description |
|---|---|---|
| bBuffer | any | |
| nA | any | |
| nB | any | |
| nB | any | |
| nBuffer | any | |
| nChar | any | |
| nIndex | any | |
| nIndex | any | |
| nIndex | any | |
| nOffset | any | |
| nOffset | any | |
| nValue | any | |
| nValue | any | |
| pIntermediate | any |