Page 1 of 1

Can I clear the algorithm instance?

Posted: Wed Nov 25, 2015 7:22 am
by KevinAli
As we all know,when we write an applet, we should create the algorithm instance before calling one encryption algorithm.

For example,

Code: Select all

theCipher = Cipher.getInstance(Cipher.ALG_AES_BLOCK_128_CBC_NOPAD,false)

Qs:
After using the algorithm to do encryption, can I clear this instance?
-If Yes, how can I do it?

Re: Can I clear the algorithm instance?

Posted: Thu Nov 26, 2015 11:25 pm
by horse dream
Yes, you can clear the instance by setting it to NULL.