Encryption functions for AES GCM

Avatar

Avatar

salvatore_dange

Avatar

salvatore_dange

salvatore_dange

25-06-2020

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?

@wodnicki @kapilKochar @Milan_Vucetic @Anita_p @Jyoti_Y @Jean-Serge_Biro & Community

 

Thanks in advace,
Salvatore

Adobe Campaign Classic encryption

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Milan_Vucetic

MVP

Avatar

Milan_Vucetic

MVP

Milan_Vucetic
MVP

25-06-2020

Hi @salvatore_dange,

Unfortunately not.
Only CBC chipper mode is supported and function is cryptString (AES algorithm).

Regards,

Milan

 

Answers (2)

Answers (2)

Avatar

Avatar

salvatore_dange

Avatar

salvatore_dange

salvatore_dange

26-06-2020

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:

salvatore_dange_0-1593186084273.png
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?

salvatore_dange_1-1593186268626.png

 

Thanks again!
Salvatore

 

Avatar

Avatar

Darren_Bowers

MVP

Avatar

Darren_Bowers

MVP

Darren_Bowers
MVP

25-06-2020

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