Hello all,
Are there any function on Campaign that support AES GCM (No padding)?
Can you provide me an example to encrypt/decrypt a string?
@Jonathon_wodnicki @kapilKochar @Milan_Vucetic @Anita_punmiya @Jyoti_Yadav @Jean-Serge_Biro & Community
Thanks in advace,
Salvatore
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @salvatore_dange,
Unfortunately not.
Only CBC chipper mode is supported and function is cryptString (AES algorithm).
Regards,
Milan
Views
Replies
Total Likes
Hi @salvatore_dange,
Unfortunately not.
Only CBC chipper mode is supported and function is cryptString (AES algorithm).
Regards,
Milan
Views
Replies
Total Likes
Hi @salvatore_dange - as @Milan_Vucetic said, there is no built-in AES-GCM crypto library in Campaign, but you can easily create your own.
https://github.com/rndme/aes4js - if you bring in this JS file intro your JavaScript codes folder and then include it into whatever process you want to encrypt/decrypt with then you have AEM GCS library support.
Cheers Darren
Views
Replies
Total Likes
Hello,
Thanks for these feedbacks.
@Darren_Bowers this javascript probably needs some libraries and browser-related APIs to work. In fact, as you can see it fails with a simple test:
In case you find a code with no dependency, can you tell me also how to use it in a personalization block (loadLibrary probably doesn't work)?
@Milan_Vucetic what about RSA encryption methods?
Thanks again!
Salvatore
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies