# Nexus Repository Manager 3 password encryption

**URL:** <https://community.sonatype.com/t/nexus-repository-manager-3-password-encryption/4611>\
**Category:** Sonatype Nexus Repository\
**Created:** [July 13, 2020, 8:43am UTC](https://community.sonatype.com/t/nexus-repository-manager-3-password-encryption/4611 "2020-07-13T08:43:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lzyuan168](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lzyuan168](https://community.sonatype.com/u/lzyuan168)\
**Post date:** [July 13, 2020, 8:43am UTC](https://community.sonatype.com/t/nexus-repository-manager-3-password-encryption/4611/1 "2020-07-13T08:43:05Z")

</div>

Hi,

In the project, for security reasons, we are using Active Directory with Nexus and we want to encrypt the password that is stored in settings.xml for Maven connection

I would like to know about the following:

1. does Nexus accept encrypted password for Authentication
2. does Nexus have the capability to decrypt the encrypted password that is passed to it from settings.xml

Thank you

---

<div class="post-metadata">

**Author:** ![wwannemacher](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/wwannemacher/32/196_2.png) [@wwannemacher](https://community.sonatype.com/u/wwannemacher)\
**Post date:** [July 13, 2020, 5:10pm UTC](https://community.sonatype.com/t/nexus-repository-manager-3-password-encryption/4611/2 "2020-07-13T17:10:24Z")

</div>

Storing encrypted passwords in the `settings.xml` file is a Maven feature, not necessarily a Nexus feature. Have you tried to use any of the approaches available [here](http://maven.apache.org/guides/mini/guide-encryption.html)? Additionally, the Pro version of Nexus Repository Manager supports [User Tokens](https://help.sonatype.com/repomanager3/system-configuration/user-authentication/security-setup-with-user-tokens), which may be another option.

---

<div class="post-metadata">

**Author:** ![lzyuan168](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lzyuan168](https://community.sonatype.com/u/lzyuan168)\
**Post date:** [July 14, 2020, 6:58am UTC](https://community.sonatype.com/t/nexus-repository-manager-3-password-encryption/4611/3 "2020-07-14T06:58:52Z")

</div>

Hi,

Thanks for the reply. I am not very familiar with the password encryption feature in Maven, I will read up on it further.

My query is that

1. is Maven going to send the encrypted password to the server (i.e. the server where Nexus is installed)
2. or does Maven actually decrypt the encrypted password stored in settings.xml before sending the decrypted password to the server
3. in the case that Nexus received an encrypted password, does Nexus have corresponding plugin or capability to decrypt the password

Thank you
