Harden the hsm secret tool's encrypt flow and file validation
Harden the hsm secret tool's encrypt flow and file validation: a task in mimo-v26-rl-oss-code-terminal-harbor: MiMo V2.6 RL Harbor Code + Terminal (Harbor dataset). Our standalone HSM secret command-line utility ( tools/hsmtool ) lets operators encrypt and decrypt their node's hsm secret file with…
The task
Our standalone HSM secret command-line utility (`tools/hsmtool`) lets operators encrypt and decrypt their node's `hsm_secret` file with a password. Two rough edges keep biting people, and I'd like both fixed.