tested with GPG encryption