pub fn write_encryption_key( user_id: &str, key_bytes: &[u8], ) -> Result<(), CredentialError>
Write the encryption key for a user to config.