Avoid ConcurrentModificationException when decrypting

Fixes gh-20
Added the option to use a username and password

Fixes gh-19