goog.crypt.Md5
Provided By | |
---|---|
Extends |
MD5 cryptographic hash constructor.
new Md5()
Parameters | None. |
---|
Instance Methods
expand_more
this.reset() → void
void
expand_more
this.update( bytes, opt_length ) → void
void
Adds a byte array (array with values in [0-255] range) or a string (must only contain 8-bit, i.e., Latin1 characters) to the internal accumulator.
Many hash functions operate on blocks of data and implement optimizations when a full chunk of data is readily available. Hence it is often preferable to provide large chunks of data (a kilobyte or more) than to repeatedly call the update method with few tens of bytes. If this is not possible, or not feasible, it might be good to provide data in multiplies of hash block size (often 64 bytes). Please see the implementation and performance tests of your favourite hash.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
Instance Properties
expand_more
this.blockSize → number
number
The block size for the hasher.