Feature/encrypt

This PR fixes issue #1