Dart API Referencedart:cryptoMD5

MD5 abstract class

MD5 hash function implementation.

WARNING: MD5 has known collisions and should only be used when required for backwards compatibility.

abstract class MD5 implements Hash {
 factory MD5() => new _MD5();
}

Implements

Hash

Constructors

factory MD5() #

factory MD5() => new _MD5();

Properties

final int blockSize #

inherited from Hash

Internal block size of the hash in bytes.

This is exposed for use by the HMAC class which needs to know the block size for the Hash it is using.

int get blockSize;

Methods

abstract dynamic add(List<int> data) #

inherited from Hash

Add a list of bytes to the hash computation.

abstract List<int> close() #

inherited from Hash

Finish the hash computation and extract the message digest as a list of bytes.

abstract Hash newInstance() #

inherited from Hash

Returns a new instance of this hash function.