SHA-512 Cryptographic Hash Function

Constructor

new ()

Initialize and setup the hash function context

Methods

finish ():Bytes

Compute the final digest

The context is cleared and no other methods can called after calling finish().

Returns:

The resulting digest

update (bytes:Bytes, pos:Int, len:Int):Void

Process data from buffer

Parameters:

bytes

Buffer with the data to process

pos

Starting position to read from bytes

len

Total length to read from bytes

Static methods

staticencode (string:String):String

Compute the hexadecimal digest of string

This method exists for convenience and to mirror the equivalent haxe.crypto.* API. However, it is not suited for large inputs.

Parameters:

string

Entire data to be processed

Returns:

A string containing the hexadecimal representation of the digest

staticmake (bytes:Bytes):Bytes

Compute the digest of bytes

This method exists for convenience and to mirror the equivalent haxe.crypto.* API. However, it is not suited for large inputs.

Parameters:

bytes

Entire data to be processed

Returns:

The resulting digest