Extract security from agdroid

perhaps a bit of javadoc for the `encrypt` and `decrypt` methods