update encrypted data