Difference between the methods update() and doFinal() in Cipher
update()addsdatatotheCipher’sinternalbuffer,thenreturnsallcurrentlycompletelyencodedblocks.Ifthereareanyencodedblocksleftover,theyremainintheCipher’sbufferuntilthenextcall,oracalltodoFinal().Thismeans