检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
openssl rand -out 0xPlaintextKeyMaterial.bin -hex 16 将16进制SM4密钥转换成二进制格式: cat 0xPlaintextKeyMaterial.bin | xxd -r -ps > PlaintextKeyMaterial.bin
createDatakeyResponse.getCipherText(); final byte[] plainKey = hexToBytes(createDatakeyResponse.getPlainText()); // 6.准备待加密的文件 // inFile
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
// 需要加密的数据 private static final String PLAIN_TEXT = "Hello World!"; public static void main(String[] args) { // 主密钥列表
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
private static final int SALT_LENGTH = 32; private static final int TRAILER_FIELD = 1; public static final String RSA_PUBLIC_KEY_BEGIN = "-----BEGIN
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"projects": [ { "domain_id": "65382450e8f64ac0870cd180d14e684b", "is_domain": false, "parent_id": "
success. version id:%s", secretDetail.getVersion().getVersionMetadata().getId()); return secretDetail; } /** * 获取CSMS服务客户端
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
激活专属加密实例 您需要激活专属加密实例才能使用。激活时需要支付专属加密实例的包周期费用。标准版的激活费用为零。 该任务指导用户通过专属加密界面激活专属加密实例。 前提条件 专属加密实例的状态为“待激活”。 约束条件 实例名称只能由中文字符、英文字母、数字、下划线或者中划线组成。
是 String 别名。一个账号在同一个区域别名不能重复 响应参数 状态码: 201 表4 响应Body参数 参数 参数类型 描述 domain_id String 账号ID key_id String 密钥ID alias String 别名 alias_urn String 别名资源定位符
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
task_id=xxxxx 查询凭据任务,凭据名称为xx,任务状态为FAILED,每页返回个数为10个,分页起始任务ID为xxxx。 /v1/xxxxx/csms/tasks?secret_name=xx&status=FAILED&limit=10&marker=xxxx 响应示例 状态码:
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
target_key_id 是 String 待关联的密钥ID 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 domain_id String 账号ID key_id String 密钥ID alias String 别名 alias_urn String 别名资源定位符