Add support for hidden encryption

fixes #2