---
title: A Step-by-Step Guide to Mulesoft Encryption
description: A step-by-step guide to encrypting a string out of a yaml file in Mulesoft. Easy to read and execute for any level Mulesoft user, beginner to advanced.
image: https://blog.continuus.ai/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_Thumbnail_220920.png
---

[Skip to content](https://blog.continuus.ai/mulesoft-encryption-guide#main-content)

[![Continuus Logo 2024 - Horizontal - Full Color - Padded-1](https://blog.continuus.ai/hs-fs/hubfs/Continuus%20Logo%202024%20-%20Horizontal%20-%20Full%20Color%20-%20Padded-1.png?width=1803&height=665&name=Continuus%20Logo%202024%20-%20Horizontal%20-%20Full%20Color%20-%20Padded-1.png)](https://www.continuus.ai/)

- [Services](https://www.continuus.ai/services)
- [Partners](https://www.continuus-technologies.com/partners)
- Company
  
  Show submenu for Company 
  
    - [About](https://www.continuus.ai/about)
    - [Our Team](https://www.continuus.ai/our-team)
    - [Careers](https://www.continuus.ai/careers)
    - [News](https://www.continuus.ai/news-recognition)
- [Resources](https://blog.continuus-technologies.com/)
- [Contact](https://www.continuus-technologies.com/contact)

Open main navigation

Close main navigation

- [Services](https://www.continuus.ai/services)
- [Partners](https://www.continuus-technologies.com/partners)
- Company
  
  Show submenu for Company 
  
    - [About](https://www.continuus.ai/about)
    - [Our Team](https://www.continuus.ai/our-team)
    - [Careers](https://www.continuus.ai/careers)
    - [News](https://www.continuus.ai/news-recognition)
- [Resources](https://blog.continuus-technologies.com/)
- [Contact](https://www.continuus-technologies.com/contact)

[All posts](https://blog.continuus.ai/all)

 July 19, 2024

# A Step-by-Step Guide to Mulesoft Encryption

![Picture of Continuus](https://blog.continuus.ai/hs-fs/hubfs/1-2.png?width=50&name=1-2.png) By  [Continuus](https://blog.continuus.ai/author/continuus-technologies)  ·   2 minute read

[Return to Resources](https://blog.continuus.ai/)

Mulesoft can be a fickle friend and I personally struggled to find very direct and straightforward content around general practices in it. This is compiled with the intention of being a step-by-step guide in an easy-to-read and easy-to-execute manner. I’m technical but I wouldn’t say I know how to code everything and every term that is utilized in Mulesoft so I write with the intention that any level will understand.

Get the secure .jar file from Mulesoft (can be found from this link [https://docs.mulesoft.com/mule-runtime/4.4/secure-configuration-properties](https://docs.mulesoft.com/mule-runtime/4.4/secure-configuration-properties), if you click the following link it kicks off the download immediately): [https://docs.mulesoft.com/downloads/mule-runtime/4.2/secure-properties-tool.jar](https://docs.mulesoft.com/downloads/mule-runtime/4.2/secure-properties-tool.jar)

Place in a folder - picture below is for reference: 

![A Step-by-Step Guide to Mulesoft Encryption_1_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_1_220920.png?width=936&height=250&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_1_220920.png)

 

**Command line activities: **

cd to the location you put the .jar file. 

Run the following to encrypt the passwords you'd like: 

*C:\\Users\\ckingstad\\OneDrive - Continuus Technologies\\Documents\\Clients\\Muley\\Encryption>java -cp secure-properties-tool.jar com.mulesoft.tools.SecurePropertiesTool string encrypt Blowfish CBC mulesoft examplePassword*

![A Step-by-Step Guide to Mulesoft Encryption_1b_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_1b_220920.png?width=1830&height=655&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_1b_220920.png)

 

 

In the above the last few are interchangeable! So I use Blowfish algorithm encryption, CBC method, and I use the key of Mulesoft. You could use any key here as you will just specify in the secure configuration. Last item "examplePassword" would be an example of the password so this will change each time you encrypt a password. 

The output of the ran command is your encrypted password that will be placed in the yaml. 

![A Step-by-Step Guide to Mulesoft Encryption_2_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_2_220920.png?width=936&height=56&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_2_220920.png)

 

**In Mulesoft you will do a few steps: **

1. Update yaml password with the encrypted: '!\[encrypted\_password\]'
2. Update your config tools in global to be ${secure::yaml\_details.element}
3. Go into exchange in your palette and search for secure and add Mulesoft Secure Configuration.
4. Global elements and add in the Secure configuration details: this will only be available after completing step 3!
5. The file will be your yaml file - this can be found in your global configuration element - or typically ${mule.env}-config.yaml. Basically, whatever your yaml file is named with your properties information. This is just pointing you to where you want to decrypt. Your key is what you encrypted with in the cmd steps noted above - in our example it is MuleSoft. And then be sure to set your encryption algorithm and methods to be proper to the cmd line steps.

*image ref 1*

![A Step-by-Step Guide to Mulesoft Encryption_3_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_3_220920.png?width=1071&height=711&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_3_220920.png)

 

*image ref 2*

![A Step-by-Step Guide to Mulesoft Encryption_4_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_4_220920.png?width=1063&height=710&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_4_220920.png)

 

*image ref 3*

![A Step-by-Step Guide to Mulesoft Encryption_5_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_5_220920.png?width=990&height=661&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_5_220920.png)

 

*image ref 4*

![A Step-by-Step Guide to Mulesoft Encryption_6_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_6_220920.png?width=979&height=654&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_6_220920.png)

 

*image ref 5*

![A Step-by-Step Guide to Mulesoft Encryption_7_220920](https://blog.continuus.ai/hs-fs/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_7_220920.png?width=1073&height=720&name=A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_7_220920.png)

 

I hope this is helpful to anyone else who finds the current material a little confusing. This is purely for encrypting a string out of a yaml file though. Some different steps must be taken when encrypting an entire yaml file.

 

#### Links

- Secure Configuration Properties: [https://docs.mulesoft.com/mule-runtime/4.4/secure-configuration-properties](https://docs.mulesoft.com/mule-runtime/4.4/secure-configuration-properties)
- How to Encrypt: [https://help.mulesoft.com/s/question/0D52T00004mXOsFSAW/how-to-encrypt-value-in-configuration-file](https://help.mulesoft.com/s/question/0D52T00004mXOsFSAW/how-to-encrypt-value-in-configuration-file)
- Securing MuleSoft Application Properties File: [https://apisero.com/securing-mulesoft-application-properties-file/](https://apisero.com/securing-mulesoft-application-properties-file/)
- How to Encrypt Property Files: [https://www.linkedin.com/pulse/how-encrypt-property-files-salma-sultana/](https://www.linkedin.com/pulse/how-encrypt-property-files-salma-sultana/)

 

Share: [facebook-f icon](http://www.facebook.com/share.php?u=https://blog.continuus.ai/mulesoft-encryption-guide) [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://blog.continuus.ai/mulesoft-encryption-guide) [twitter icon](https://twitter.com/intent/tweet?url=https://blog.continuus.ai/mulesoft-encryption-guide) [pinterest-p icon](http://pinterest.com/pin/create/link/?url=https://blog.continuus.ai/mulesoft-encryption-guide) [envelope icon](mailto:?body=https://blog.continuus.ai/mulesoft-encryption-guide)

## Related posts

[![](https://blog.continuus.ai/hubfs/Website%20Resources%20Header%20Graphic%20-%201000x800%20-%20Webinar%20-%20Modern%20Data%20Architecture%20for%20AI%20with%20Snowflake.png)](https://blog.continuus.ai/webinar-modern-data-architecture-for-ai-snowflake)

[Snowflake](https://blog.continuus.ai/tag/snowflake)

### [Webinar On-Demand | Modern Data Architecture for AI with Snowflake](https://blog.continuus.ai/webinar-modern-data-architecture-for-ai-snowflake)

[![](https://blog.continuus.ai/hubfs/2020%20Blog%20Images/Using%20the%20CICD%20Method%20in%20Tableau%20Development_201021/Using%20CICD%20Method%20in%20Tableau%20Development_201021.png)](https://blog.continuus.ai/cicd-method-tableau-development)

[Blog](https://blog.continuus.ai/tag/blog)

### [Using the CI/CD Method in Tableau Development](https://blog.continuus.ai/cicd-method-tableau-development)

[![](https://blog.continuus.ai/hubfs/2020%20Blog%20Images/When%20Do%20You%20Need%20a%20Cloud%20Data%20Warehouse_200225/When%20Do%20You%20Need%20a%20Cloud%20Data%20Warehouse_200225.png)](https://blog.continuus.ai/when-need-cloud-data-warehouse)

[Blog](https://blog.continuus.ai/tag/blog)

### [When Do You Need a Cloud Data Warehouse?](https://blog.continuus.ai/when-need-cloud-data-warehouse)

### Pages

---

### Resources

---

[Home](https://www.continuus.ai/)

[Services](https://www.continuus.ai/services)

[Partners](https://www.continuus.ai/partners)

[About](https://www.continuus.ai/about)

 

[Our Team](https://www.continuus.ai/our-team)

[Careers](https://www.continuus.ai/careers)

[News](https://www.continuus.ai/news-recognition)

[Contact](https://www.continuus.ai/contact)

Blog Posts

Case Studies

Solution Briefs

Webinars

Demos

Videos

All

[Cookies Policy](https://www.continuus.ai/cookies-policy) | [Privacy Policy](https://www.continuus.ai/privacy-policy) | [Accessibility](https://www.continuus.ai/accessibility) | *©* [*Continuus Technologies*](https://www.continuus.ai/) *2024*

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Continuus",
    "url" : "https://blog.continuus.ai/author/continuus-technologies"
  },
  "dateModified" : "2024-07-19T19:08:41.372Z",
  "datePublished" : "2022-09-21T02:56:00.000Z",
  "headline" : "A Step-by-Step Guide to Mulesoft Encryption",
  "image" : [ "https://blog.continuus.ai/hubfs/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_Thumbnail_220920.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.continuus.ai/mulesoft-encryption-guide",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.continuus.ai/hubfs/Continuus%20Logo%202024%20-%20Horizontal%20-%20Full%20Color%20-%20Padded-1.png"
    },
    "name" : "Continuus"
  }
}
```

```json
{
  "@context" : "http://schema.org",
  "@type" : "Article",
  "author" : {
    "@type" : "Person",
    "name" : [ "Continuus" ],
    "url" : "https://blog.continuus.ai/author/continuus-technologies"
  },
  "datePublished" : "2022-09-21T02:56:00+0000",
  "description" : "A step-by-step guide to encrypting a string out of a yaml file in Mulesoft. Easy to read and execute for any level Mulesoft user, beginner to advanced.",
  "headline" : "A Step-by-Step Guide to Mulesoft Encryption",
  "image" : "https://21082575.fs1.hubspotusercontent-na1.net/hubfs/21082575/2022%20Blog%20Images/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_220920/A%20Step-by-Step%20Guide%20to%20Mulesoft%20Encryption_Thumbnail_220920.png",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://21082575.fs1.hubspotusercontent-na1.net/hubfs/21082575/Continuus%20Logo%202024%20-%20Horizontal%20-%20Full%20Color%20-%20Padded-1.png"
    },
    "name" : "Continuus"
  },
  "url" : "https://blog.continuus.ai/mulesoft-encryption-guide"
}
```