crypt.Md5 Extends goog.crypt.Hash
MD5 cryptographic hash constructor.

Inheritance

Constructor

goog.crypt.Md5()

Instance Methods

Public Protected Private
Defined in goog.crypt.Md5
compress_(bufopt_offset)
Internal compress helper function. It takes a block of data (64 bytes) and updates the accumulator.
Arguments:
buf : Array.<number> | Uint8Array | string
The block to compress.
opt_offset : number=
Offset of the block in the buffer.
code »
digest()
No description.
code »
reset()
No description.
code »
update()
No description.
code »
digest() !Array.<number>
No description.
Returns: !Array.<number>  The finalized hash computed from the internal accumulator.
code »
update(bytesopt_length)
Adds a byte array (array with values in [0-255] range) or a string (might 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.
Arguments:
bytes : Array.<number> | Uint8Array | string
Data used for the update.
opt_length : number=
Number of bytes to use.
code »

Instance Properties

Defined in goog.crypt.Md5
blockLength_ :
The length of yet-unprocessed data as collected in the block.
Code »
block_ :
A buffer holding the data until the whole block can be processed.
Code »
chain_ :
Holds the current values of accumulated A-D variables (MD buffer).
Code »
constructor :
No description.
Code »
totalLength_ :
The total length of the message so far.
Code »
blockSize :
The block size for the hasher.
Code »
reset :
Resets the internal accumulator.
Code »

Static Properties

goog.crypt.Md5.superClass_ :
No description.
Code »

Package crypt

Package Reference