Organize imports.
Add missing implementation of destroy.
Add InvalidInputFormatException to signal bad api inputs.
Replace AES/CBC with AES/CTR operation mode.
Refactoring: store key as instance member.