• The RSA public key is used for decryption. This method 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

    • publicKey: Buffer

      RSA public key. Note: This is sensitive information. Do not enter plaintext in the code.

    • plainText: Buffer

      Plain text

    Returns Buffer