SHA1 class

A class representing the SHA-1 (Secure Hash Algorithm 1) hash algorithm.

SHA-1 produces a 160-bit (20-byte) hash digest.

Implemented types

Constructors

SHA1()
Initializes an instance of the SHA-1 hash.

Properties

getBlockSize int
The block size used by the hash algorithm.
no setteroverride
getDigestLength int
The length of the digest produced by the hash algorithm.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean() → void
Clean up the internal state and reset hash object to its initial state.
override
cleanSavedState(SH1State savedState) → void
Clean up and reset the saved state of the hash object to its initial state.
override
digest() List<int>
Generates the final hash digest by assembling and returning the hash state.
override
finish(List<int> out) Hash
Finalizes the hash computation and stores the hash state in the provided out.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() SHA1
Resets the hash computation to its initial state.
override
restoreState(SH1State savedState) SerializableHash<HashState>
Restores the hash computation state from a previously saved state.
override
saveState() SH1State
Saves the current hash computation state into a serializable state object.
override
toString() String
A string representation of this object.
inherited
update(List<int> data) SHA1
Updates the hash computation with the given data.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

hash(List<int> data) List<int>
Computes the SHA1 hash of the provided data.
override