跳过内容

🔐 key

🔐 为安全分发打包而管理加密密钥,支持使用RSA和AES组合进行端到端加密在 Capgo Cloud 中。

终端窗口
npx @capgo/cli@latest key save

💾 将公钥保存在 Capacitor 配置中,适用于CI环境。 建议不要将密钥提交到版本控制中以保持安全。

示例:

终端窗口
npx @capgo/cli@latest key save --key ./path/to/key.pub

选项:

参数:类型:描述
-f,string强制生成新密钥
—keystring密钥路径保存在 Capacitor 配置中
—key-datastring密钥数据保存在 Capacitor 配置中

🔨 创建

终端窗口
复制到剪贴板
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!

示例:

终端窗口
npx @capgo/cli@latest key create

选项:

参数类型描述
-f,string强制生成新文件

🗑️ 标题:删除旧文件

终端窗口
Force generate a new one
npx @capgo/cli@latest key delete_old

🧹 从 Capacitor 配置中删除旧的加密密钥,以确保只使用当前密钥。

示例:

终端窗口
npx @capgo/cli@latest key delete_old

继续使用当前密钥

标题:继续使用当前密钥

如果您正在使用 密钥 来规划安全性和合规性,连接它到 加密 加密的实现细节在加密中 Compliance for the implementation detail in Compliance, Capgo 安全扫描器 for the product workflow in Capgo Security Scanner, Capgo 安全 for the product workflow in Capgo Security, and Capgo 信任中心 for the product workflow in Capgo Trust Center.