Libraries anvil crypto MessageHash

class MessageHash
extends anvil.lang.object
This class is used for creating message hash codes: Message Digest or Message Authentication Code (MAC).

Methods

binary final()
Returns the message hash code. The code can be converted to a hex string using toHex() function.

string getAlgorithm()
Returns algorithm name for this MessageHash object.

int getLength()
Returns length of hash.

void update(object data, ...)
Adds one or more data items (string or binary).
void update(File data, ...)
Adds the contents of one or more data files.
void update(URL data, ...)
Adds the contents from one or more URL:s.
void update(InputStream data, ...)
Adds the contents from one or more InputStream's.
Parameters data -  collection of one or more data items