Hash
Extends:
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
|
|
public static |
|
|
public static |
computeBlake2b(input: Uint8Array): Uint8Array |
|
public static |
computeSha256(input: Uint8Array): Uint8Array |
|
public static |
computeSha512(input: Uint8Array): Uint8Array |
|
public static |
|
|
public static |
fromBase64(base64: string): Hash |
|
public static |
|
|
public static |
|
|
public static |
fromString(str: string): Hash |
|
public static |
getSize(algorithm: Hash.Algorithm): number |
|
public static |
this method was deprecated.
|
|
public static |
|
|
public static |
this method was deprecated.
|
|
public static |
|
|
public static |
|
|
public static |
unserialize(buf: SerialBuffer, algorithm: Hash.Algorithm): Hash |
Member Summary
Public Members | ||
public get |
algorithm: Hash.Algorithm |
|
public get |
array: Uint8Array |
|
public get |
serializedSize: number |
Method Summary
Public Methods | ||
public |
equals(o: Serializable): boolean |
|
public |
serialize(buf: SerialBuffer): SerialBuffer |
|
public |
subarray(begin: number, end: number): Uint8Array |
|
public |
toPlain(): string |
Inherited Summary
From class Serializable | ||
public |
compare(o: Serializable): number |
|
public |
equals(o: Serializable): boolean |
|
public |
hashCode(): * |
|
public abstract |
serialize(buf: SerialBuffer) |
|
public |
toBase64(): string |
|
public |
toHex(): string |
|
public |
toString(): string |
Static Public Methods
public static async argon2d(arr: Uint8Array): Promise<Hash> source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static blake2b(arr: Uint8Array): Hash source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static compute(arr: Uint8Array, algorithm: Hash.Algorithm): Hash source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array | ||
algorithm | Hash.Algorithm |
public static computeBlake2b(input: Uint8Array): Uint8Array source
Params:
Name | Type | Attribute | Description |
input | Uint8Array |
Return:
Uint8Array |
public static computeSha256(input: Uint8Array): Uint8Array source
Params:
Name | Type | Attribute | Description |
input | Uint8Array |
Return:
Uint8Array |
public static computeSha512(input: Uint8Array): Uint8Array source
Params:
Name | Type | Attribute | Description |
input | Uint8Array |
Return:
Uint8Array |
public static fromAny(hash: Hash | Uint8Array | string, algorithm: Hash.Algorithm): Hash source
Params:
Name | Type | Attribute | Description |
hash | Hash | Uint8Array | string | ||
algorithm | Hash.Algorithm |
public static fromBase64(base64: string): Hash source
Params:
Name | Type | Attribute | Description |
base64 | string |
public static getSize(algorithm: Hash.Algorithm): number source
Params:
Name | Type | Attribute | Description |
algorithm | Hash.Algorithm |
Return:
number |
public static hard(arr: Uint8Array): Promise<Hash> source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static isHash(o: Hash): boolean source
Params:
Name | Type | Attribute | Description |
o | Hash |
Return:
boolean |
public static light(arr: Uint8Array): Hash source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static sha256(arr: Uint8Array): Hash source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static sha512(arr: Uint8Array): Hash source
Params:
Name | Type | Attribute | Description |
arr | Uint8Array |
public static unserialize(buf: SerialBuffer, algorithm: Hash.Algorithm): Hash source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer | ||
algorithm | Hash.Algorithm |
|
Public Members
public get algorithm: Hash.Algorithm source
public get array: Uint8Array source
public get serializedSize: number source
Public Methods
public equals(o: Serializable): boolean source
Override:
Serializable#equalsParams:
Name | Type | Attribute | Description |
o | Serializable |
Return:
boolean |
public serialize(buf: SerialBuffer): SerialBuffer source
Override:
Serializable#serializeParams:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
public subarray(begin: number, end: number): Uint8Array source
Params:
Name | Type | Attribute | Description |
begin | number | ||
end | number |
Return:
Uint8Array |