Class: Md4

Md4

new Md4()

This is internal class.
Source:
See:

Methods

array() → {Array}

Output hash as bytes array
Source:
See:
Returns:
Bytes array
Type
Array
Example
hash.array();

arrayBuffer() → {ArrayBuffer}

Output hash as ArrayBuffer
Source:
See:
  • md4.arrayBuffer
Returns:
ArrayBuffer
Type
ArrayBuffer
Example
hash.arrayBuffer();

buffer() → {ArrayBuffer}

Output hash as ArrayBuffer
Deprecated:
  • This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
Source:
See:
Returns:
ArrayBuffer
Type
ArrayBuffer
Example
hash.buffer();

digest() → {Array}

Output hash as bytes array
Source:
See:
Returns:
Bytes array
Type
Array
Example
hash.digest();

hex() → {String}

Output hash as hex string
Source:
See:
Returns:
Hex string
Type
String
Example
hash.hex();

toString() → {String}

Output hash as hex string
Source:
See:
Returns:
Hex string
Type
String
Example
hash.toString();

update(message) → {Md4}

Update hash
Parameters:
Name Type Description
message String | Array | Uint8Array | ArrayBuffer message to hash
Source:
See:
Returns:
MD4 object.
Type
Md4