Hi Experts,
I understand AEM provides an out of the box utility at /system/console/crypto to convert plain text passwords to encrypted password. However, we have a requirement to convert such encrypted password to plain text password for verification purposes at later point of time by Production support team. So, is there a utility that AEM provides to decrypt password ?
Edit - We are using 6.5 SP2.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @bsr78033597
There is no OOTB option to decrypt the encrpted text from consoles. I would suggest if you really need this flexibility, you can do following:
@Reference
private CryptoSupport cryptoSupport;
@Override
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
String etext = request.getParameter("etext");
if(cryptoSupport.isProtected(etext)){
String dtext = this.cryptoSuport.unProtect(etext);
response.getWriter().write(dtext);
}
else{
response.getWriter().write("Non Encrypted Text");
}
}
Hope it helps!
Thanks!
Nupur
Hi @bsr78033597
There is no OOTB option to decrypt the encrpted text from consoles. I would suggest if you really need this flexibility, you can do following:
@Reference
private CryptoSupport cryptoSupport;
@Override
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
String etext = request.getParameter("etext");
if(cryptoSupport.isProtected(etext)){
String dtext = this.cryptoSuport.unProtect(etext);
response.getWriter().write(dtext);
}
else{
response.getWriter().write("Non Encrypted Text");
}
}
Hope it helps!
Thanks!
Nupur
Views
Likes
Replies
Views
Likes
Replies