try to synchronise encrypt and decrypt methods to avoid data corruption
* change version to 1.0.1-af-SNAPSHOT