Decrypt
    • PDF

    Decrypt

    • PDF

    Article summary

    POST /kms/v1/keys/{keyTag}/decrypt

    Decrypt the ciphertext encrypted with a key. It can only be requested as an AES256 or RSA2048 key type.

    Note

    The KMS prefix must be specified exactly with the ciphertext because it will be decrypted with the key version specified in the decryption request.

    Request

    Request parameters

    Parameter NameTypeAdditional Information
    x-ncp-ocapi-tokenHeader(Required)Access Token
    keyTagPath(Required)
    ciphertextBody: String or String listBase64 Encoded text.
    contextBody: StringBase64 Encoded text(Up to 50B). Can only be used as a key to apply convergent encryption

    Request body

    {
      "ciphertext": "string"
    }
    

    Response

    Response body

    {
      "code": "string",
      "data": {
        "plaintext": "string"
      }
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.