---
title: Obfuscating keys and passwords
description: Obfuscate keys and passwords in the properties.rc file.
component: pingintelligence
version: 5.2
page_id: pingintelligence:installing_pingintelligence_for_apis:pingintelligence_machine_learning_service_obfuscate
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/installing_pingintelligence_for_apis/pingintelligence_machine_learning_service_obfuscate.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result:
---

# Obfuscating keys and passwords

Obfuscate keys and passwords in the `properties.rc` file.

## About this task

To obfuscate keys and passwords configured in the `properties.rc` file:

## Steps

1. Add the actual keys in the `properties.rc` file.

2. To obfuscate keys and passwords, run the following command:

   ```
   /opt/pingidentity/ml_service/bin/cli.sh obfuscate_keys
   ```

   ### Result:

   The following keys are obfuscated in the configuration files:

   * `Kafka_producer_jaas_password`

   * `Kafka_consumer_password`

   * `Mongo_password`
