Utility to encrypt and decrypt the key when storing it or retrieving it
Don't change the name of the params, otherwise you'll get warnings because of the supertype 'Serializer'