Crypto Support in AEM



This feature allows all OSGi configuration properties to be stored in a protected encrypted form instead of clear text. The form in the Web Console UI is used to create encrypted text from clear text using the system wide encryption master key.
OSGi Configuration Plugin support was added in order to decrypt the property before it is used by a service.
Below I will explain how you can use this in encrypt the plain text.
Steps :
1. Go to Config Mgr.
2. Under Mains you can find Crypto Support. Click on that.

3. Adobe Experience Manager Web Console Crypto Support Console will open. There you can see two fields i.e. Plain Text and Protected Text
4. You can add the sensitive data in Plain text field.
5. Now click on Protect. Protected text will appear in its text box.
6. You can go ahead and use this protected text where ever you want to add like in SMTP password field etc.
In order to decrypt you can use unprotect method.
@Reference
CryptoSupport cryptosupport;
public class Test{
if(this.cryptoSupport.isProtected(key){
this.cryptoSupport.unprotect(key)
}
}

Hope this helps!!

Happy Coding 🙏

If you like my post and find it helpful, you can buy me a coffee.




Comments

  1. Bronx Injury Lawyers P.C. Appreciate how clearly you laid this out. The paperwork and deadlines around a the Bronx, NY injury claim catch a lot of people off guard. Bronx Injury Lawyers P.C. helps people in the Bronx, NY understand what a claim is worth, with a free initial consultation.

    ReplyDelete
  2. Brooklyn Injury Attorneys P.C. It's worth knowing the full value of a Brooklyn, NY claim before any paperwork gets signed. Brooklyn Injury Attorneys P.C. offers free consultations for Brooklyn, NY injury cases, so there's no risk in just asking. Worth looking into before making any decisions.

    ReplyDelete
  3. Brooklyn Injury Attorneys P.C. Thanks for writing this, it answers a question I hear a lot. The first offer after a Brooklyn, NY accident is a starting point, not a fair final figure. A firm like Brooklyn Injury Attorneys P.C. that concentrates on Brooklyn, NY injury claims can tell you quickly what your options are.

    ReplyDelete

Post a Comment