> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialize Secrets

> This operation initializes a passphrase-encrypted Secrets file that contains a unique TSS Node ID.

<Tip>
  Try [Cobo WaaS Skill](/v2/guides/overview/cobo-waas-skill) in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
</Tip>

<Info>A Secrets file contains all essential information about the TSS Node, including TSS Node ID and key shares.</Info>

<CodeGroup>
  ```Swift iOS theme={null}
  public func initializeSecrets(secretsFile: String, passphrase: String) async throws -> String
  ```

  ```Dart Flutter theme={null}
  Future<String> initializeSecrets(String secretsFile, String passphrase) async
  ```
</CodeGroup>

<RequestExample>
  ```Swift iOS theme={null}
  let secrets = "secrets.db"
  let passphrase = "d3hxNyoiAP@Lm!D7Qpo_hghdpgyc_r39"

  Task {
      do {
          let tssNodeID = try await initializeSecrets(secretsFile: secrets, passphrase: passphrase)
          print("TSS Node ID: \(tssNodeID)")
      } catch {
          print("Error: \(error)")
      }
  }
  ```

  ```Dart Flutter theme={null}
  const String secrets = "secrets.db";
  const String passphrase = "d3hxNyoiAP@Lm!D7Qpo_hghdpgyc_r39";

  try {
      final tssNodeID = await initializeSecrets(secrets, passphrase);
      print("TSS Node ID: $tssNodeID");
  } catch (error) {
      print("Error: $error");
  }
  ```
</RequestExample>

## Parameters

<ParamField path="secretsFile" type="string">
  The complete file name, including its extension, for the new Secrets file.
</ParamField>

<ParamField path="passphrase" type="string">
  The passphrase for encrypting the Secrets file, with a minimum length of 16 characters.
</ParamField>

## Response

<ResponseField name="tssNodeID" type="string">
  The TSS Node ID associated with the Secrets file.
  For example, `coboJTKRVEWHgmigeE8FB2FDpN6nadUwXkUdsRZbhyFAq8bDV`.
</ResponseField>
