🔐 密钥
复制一个包含安装步骤和本插件的完整 Markdown 指南的配置提示。
🔐 在 Capgo Cloud 中管理加密密钥,支持 RSA 和 AES combination 的端到端加密。
🔹 保存
标题:保存npx @capgo/cli@latest key save💾 将公钥保存在 Capacitor 配置中,适用于 CI 环境。 建议不要将密钥提交到版本控制中以保持安全。
示例:
npx @capgo/cli@latest key save --key ./path/to/key.pub选项:
| 参数: | 类型 | 描述 |
|---|---|---|
| -f, | string | 强制生成一个新的 |
| —key | string | Key path to save in Capacitor config |
| —key-数据 | string | Key data to save in Capacitor config |
🔨 创开
标签、《》创开」npx @capgo/cli@latest key create🔨 Create RSA key pair for end-to-end encryption. Creates .capgo_key_v2 (private) and .capgo_key_v2.pub (public) in project root. Public key is saved to capacitor.config for mobile app decryption. NEVER commit the private key - store it securely!
生成 .__CAPGO_KEEP_0___key_v2 (私钥) 和 .__CAPGO_KEEP_1___key_v2.pub (公钥) 在项目根目录。
npx @capgo/cli@latest key create示例:
| 终端窗口 | 复制到剪贴板 | 选项: |
|---|---|---|
| 参数 | string | 类型 |
🗑️ 描述
-f, 强制生成一个新的npx @capgo/cli@latest key delete_old🧹 从 Capacitor 配置中删除旧的加密密钥,以确保只使用当前密钥。
示例:
npx @capgo/cli@latest key delete_old