Page 1 of 1

Function of update() and doFinal()

Posted: Thu Apr 27, 2017 2:35 am
by Gibson
Could someone tell me what are update() and doFinal() used to do? I am going to use SHA and MD5 algorithms and I would like to know the function of update() and doFinal(). Thanks

Re: Function of update() and doFinal()

Posted: Thu Apr 27, 2017 4:39 am
by Thelogan
update() will append the data into the buffer.

doFinal ( ) will actually run the algorithm and reset the object.