
# CipherUtils类说明
#### 路径
com.huawei.livedata.lambdaservice.security.CipherUtils
#### 说明
解密密码箱中密码的key值。
![](https://support.huaweicloud.com/devg-roma/public_sys-resources/note_3.0-zh-cn.png)
在获取解密密码箱中普通密码的key值时，注意敏感信息保护，避免敏感信息泄露。
#### 方法列表
| 返回类型            | 方法和说明                                                                                                                    |
|:---|:---|
| static String   | [getPlainCipherText](String key) 解密密码箱中普通密码的key值 |
| static Response | [getPlainCertificate](String key) 解密密码箱中证书密码的key值  |
   
#### 方法详情
- **public static String getPlainCipherText(String key)**
  解密密码箱中普通密码的key值
  **输入参数**
  key：普通密码的key值
  **返回信息**
  返回解密后的密码
  
- **public static Response getPlainCertificate(String key)**
  解密密码箱中证书密码的key值
  **输入参数**
  key：证书密码的key值
  **返回信息**
  返回解密后的证书密码消息体，消息体如下格式：
  ```
  {
  "cipherType": "CERTIFICATE",
  "passphrase": "xxx",
  "privateKey": "xx",
  "privateKey": "xx",
  }
  ```
  
 
