Decrypt encrypted settings to enable sharing

Encrypted field values are encrypted with a machine-dependent private
key which made it impossible to share links with foreign machines.
Such values are therefore unencrypted before generating the link for
sharing.

Extracted de- and encrypt methods in TransferSettings.