• The RSA private key is used for encryption. This encryption mode is not recommended because it does not comply with the RSA design concept and has security risks.

    This API is only designed to be compatible with incorrect usage in other programming languages.

    Parameters

    • privateKey: Buffer

      RSA private key. Note: Do not enter sensitive information in plaintext in the code.

    • cipherText: Buffer

      Ciphertext

    Returns Buffer