Updated on 2022-12-05 GMT+08:00

CipherUtils

Path

com.huawei.livedata.lambdaservice.security.CipherUtils

Description

This class is used to decrypt the key value of the password in the password box.

When obtaining the key value of a common password in the decryption password box, protect sensitive information from being disclosed.

Method List

Returned Type

Method and Description

static String

getPlainCipherText(String key)

Decrypt the key value of a common password in the password box.

static Response

getPlainCertificate(String key)

Decrypt the key value of a certificate password in the password box.

Method Details

  • public static String getPlainCipherText(String key)

    Decrypt the key value of a common password in the password box.

    Input Parameter

    key indicates the key value of a common password.

    Returns

    Decrypted password.

  • public static Response getPlainCertificate(String key)

    Decrypt the key value of a certificate password in the password box.

    Input Parameter

    key indicates the key value of a certificate password.

    Returns

    Message body of the decrypted certificate password. The message body format is as follows:

    {
    "cipherType": "CERTIFICATE",
    "passphrase": "xxx",
    "privateKey": "xx",
    "privateKey": "xx",
    }