CryptoApi
Main class for ES5 compatibility. Please use subclasses of Hasher for ES6
Member Summary
Public Members | ||
public |
encoder: {} |
Method Summary
Public Methods | ||
public |
Get hasher by alias |
|
public |
Get HMAC instance |
|
public |
hash(name: string, message: string, options: Object): string Hash UTF message and return result in hex |
|
public |
HMAC with UTF key from UTF message and return result in hex |
Public Members
public encoder: {} source
Public Methods
public getHasher(name: string, options: Object): Hasher source
Get hasher by alias
Params:
Name | Type | Attribute | Description |
name | string | ||
options | Object |
public getHmac(key: string, hasher: Hasher): Hmac source
Get HMAC instance
Params:
Name | Type | Attribute | Description |
key | string | ||
hasher | Hasher |
public hash(name: string, message: string, options: Object): string source
Hash UTF message and return result in hex
Params:
Name | Type | Attribute | Description |
name | string | ||
message | string | ||
options | Object |
Return:
string |