🔐 键
复制一个设置提示,包含安装步骤和本插件的完整 Markdown 指南。
🔐 为安全地分发打包文件管理加密密钥,支持使用 RSA 和 AES combination 的端到端加密,支持在 Capgo Cloud 中。
🔹 保存
标题为“ 🔹 保存”npx @capgo/cli@latest key save💾 在 Capacitor 配置中保存公钥,适用于CI环境。 建议不要将密钥提交到版本控制中以保证安全性。
示例:
npx @capgo/cli@latest key save --key ./path/to/key.pub选项:
| 参数 | 类型 | 描述 |
|---|---|---|
| -f, | string | 强制生成一个新的密钥 |
| —key | string | 用于在 Capacitor 配置中保存的密钥路径 |
| —key-data | string | 用于保存在Capacitor配置中的密钥数据 |
🔨 创建
标题:创建npx @capgo/cli@latest key create🔨 为端到端加密创建 RSA 密钥对。 在项目根目录创建 .capgo_key_v2 (私钥) 和 .capgo_key_v2.pub (公钥)。 将公钥保存到 capacitor.config 中用于移动应用程序解密。 绝不提交私钥 - 安全存储!
示例:
npx @capgo/cli@latest key create选项:
| 参数: | 类型 | 描述 |
|---|---|---|
| -f, | string | 强制生成新密钥 |
🗑️ 标题:删除旧密钥
终端窗口npx @capgo/cli@latest key delete_old🧹 Delete the old encryption key from the Capacitor config to ensure only the current key is used.
终端窗口
npx @capgo/cli@latest key delete_old继续从关键中
标题:继续从关键中如果您正在使用 关键 来规划安全性和合规性,连接它与 加密 加密的实现细节在 合规 合规的实现细节在 Capgo 安全扫描器 Capgo 安全扫描器的产品工作流程中 Capgo 安全 为产品工作流程在Capgo安全中 Capgo信任中心 为产品工作流程在Capgo信任中心中