Dart API Referencedart:cryptoSHA1

SHA1 abstract class

SHA1 hash function implementation.

abstract class SHA1 implements Hash {
 factory SHA1() => new _SHA1();
}

Implements

Hash

Constructors

factory SHA1() #

factory SHA1() => new _SHA1();

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.