contents   index   previous   next



update()

syntax:

md5.update(buffer[, length])

where:

buffer - A string or buffer of data to add into this checksum

 

length - Length of data to be added. If not supplied, then the length of buffer is used.

 

return:

void.

 

description:

This method adds the supplied buffer into the running md5 checksum. If length is greater than the length of buffer, then the buffer is expanded as if filled with null bytes.

 

see:

#link <md5>

 

example:

var md5sum = new md5();

md5sum.update("hello");

md5sum.update(", world!",4);

md5sum.term();  // Return the checksum of "hello, wo"