---
schema_version: "1"
id: d83c4180b4e381121325931627f265366b2d71b0fd18e1b19a4d6648b35b25f4
title: RSA (dw::util::jwt::RSA)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-rsa.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-rsa
source_site: docs.mulesoft.com
content_type: documentation
content_hash: de43f9b47871ef4dab350f051b5540472eb3a100b3a340c88a9752787889bd75
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# RSA (dw::util::jwt::RSA)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This module provides functionality to create signed JSON Web Tokens using RSA signatures.

The supported RSA algorithms are:

- RS256

- RS384

- RS512

RSA private keys must be unencrypted `PKCS#1` or `PKCS#8` PEM keys with a modulus of at least 2048
bits.

To use this module, import it to your DataWeave code. For example, by adding the line
`import * from dw::util::jwt::RSA` to the header of your DataWeave script.

_Introduced in DataWeave version 2.6.0._

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-rsa-functions-jwt">JWT</a></p></td><td><p>Generate JWT with header, payload, and signature by specific algorithm.</p></td></tr></tbody></table>

## Variables

- [RSA Variables](https://docs.mulesoft.com/dataweave/latest/dw-rsa-variables)
