How to Encrypt your Maven password

Although Maven documentation has a whole page on their password encryption feature, it doesn’t actually tell you how to do what you need to do to encrypt Maven passwords.

What am I talking about?
If you have authentication to Maven repos in your organization, you normally store the username and password in the Maven settings file located by default at ~/.m2/settings.xml.