MD5 Message Digest Algorithm
Warning: MD5 is not considered secure anymore. For secure software, please use SHA-256 or SHA-512 instead (or their truncated variantes, SHA-224 or SHA-384).
Constructor
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 |
len | Total length to read from |
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