---
schema_version: "1"
id: b6fc0efa2d14dc72f5c47acd50691b71e4fbcb2d70302f45973f87218734b274
title: Script API JSON Web Encryption (JWE)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_rn_25_8_jwe_encryption.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_rn_25_8_jwe_encryption.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8d5023f84582bac560fb4c3dfb6883e24766921d5bd2d946a8c2b5c69e990d66
description: The Script API for JSON Web Encryption (JWE) now supports both encryption and decryption operations. Previously, it only supported decryption. This enhancement enables developers to encrypt sensitive data before sending it to third-party services, improving security and expanding integration capabilities. Additionally, a new CertificateUtils API simplifies working with external certificates, including JSON Web Key (JWK) format certificates, making certificate management more straightforward.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Script API JSON Web Encryption (JWE)

The Script API for JSON Web Encryption (JWE) now supports both encryption and decryption operations. Previously, it only supported decryption. This enhancement enables developers to encrypt sensitive data before sending it to third-party services, improving security and expanding integration capabilities. Additionally, a new CertificateUtils API simplifies working with external certificates, including JSON Web Key (JWK) format certificates, making certificate management more straightforward.

**Where:** This change applies to B2C Commerce.

#### See Also

- [Class JWE](https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/upcoming/scriptapi/html/api/class_dw_crypto_JWE.html)
- [Class CertificateUtils](https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/upcoming/scriptapi/html/api/class_dw_crypto_CertificateUtils.html)