Page 1 of 1

two methods in class Cipher(): update() and doFinal()

Posted: Tue Mar 08, 2016 6:18 am
by GraceGIRL
I know that there are two methods in class Cipher(): update() and doFinal().
But what is the update() doing? What about doFinal()? Would anybody give me a brief and simple explanation?

Re: two methods in class Cipher(): update() and doFinal()

Posted: Wed Mar 09, 2016 3:19 am
by Bob2002

Re: two methods in class Cipher(): update() and doFinal()

Posted: Tue Mar 15, 2016 2:04 am
by UNKNwYSHSA
If the data bytes is seperated to many blocks.
You can input data blocks except the last block with the method update().
And input the last data block to method doFinal() and the got the result.