Added a test with internal corruption in a pw database

This test creates a valid v2 database, but contains a corrupt password
entry.
Handle corruption of a single encrypted password
Fixed return value shifting
Cleaned up gpgDecryptString and gpgEncryptString

Removed the (unused) option of not using a base64 string