By default AEM comes with Encryption Support for Configuration Properties. This feature is supported in all versions of AEM.
This feature allows all OSGi configuration properties to be stored in a protected encrypted form instead of clear text. The form intheWeb Console UI is used to create encrypted text from clear text using the system wide encryption master key.
Please refer the below article to know how to enable encryption support.