two methods in class Cipher(): update() and doFinal()
Moderator: UNKNwYSHSA
two methods in class Cipher(): update() and doFinal()
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?
But what is the update() doing? What about doFinal()? Would anybody give me a brief and simple explanation?
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3053
- Contact:
Re: two methods in class Cipher(): update() and doFinal()
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.
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.
sense and simplicity
Who is online
Users browsing this forum: No registered users and 3 guests