javax.crypto AES encryption - Do I only need to call doFinal?
Posted
by Spines
on Stack Overflow
See other posts from Stack Overflow
or by Spines
Published on 2010-03-12T20:58:04Z
Indexed on
2010/03/12
21:17 UTC
Read the original article
Hit count: 178
I want to do AES CBC encryption in Java. I'm using javax.crypto
. After I have the Cipher
initialized, do I only need to call doFinal
on the clear bytes to properly encrypt it? Or do I need to do something with update
?
Documentation says update:
Continues a multiple-part encryption or decryption operation
and doFinal
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation
what exactly do they mean by multiple-part encryption?
© Stack Overflow or respective owner