java.lang.Object
com.scivicslab.turingworkflow.plugins.secret.SecretTool

public class SecretTool extends Object
Command-line tool for managing encrypted secrets.

Usage

 # Generate a new encryption key
 java -cp plugin-secret.jar com.scivicslab.turingworkflow.plugins.secret.SecretTool generate-key

 # Encrypt a secrets file
 java -cp plugin-secret.jar com.scivicslab.turingworkflow.plugins.secret.SecretTool encrypt secrets.ini secrets.enc <key>

 # Decrypt a secrets file (for verification)
 java -cp plugin-secret.jar com.scivicslab.turingworkflow.plugins.secret.SecretTool decrypt secrets.enc <key>
 
Since:
1.0.0
Author:
devteam@scivicslab.com
  • Constructor Details

    • SecretTool

      public SecretTool()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the secret management CLI.

      Supported commands:

      • generate-key - Generate a new AES-256 encryption key
      • encrypt <input> <output> <key> - Encrypt a plaintext secrets file
      • decrypt <input> <key> - Decrypt and display an encrypted secrets file
      Parameters:
      args - command-line arguments; first argument is the command name