'We perform no encryption, we just encode the value as base64 and then
decode it in decrypt().'

def encrypt(self):

    value = self.parameters.get(u'Plaintext')
    if isinstance(value, six.text_type):
        value = value.encode(u'utf-8')
    return json.dumps({u'CiphertextBlob': base64.b64encode(value).decode(u'utf-8')})
