Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Encryption functions for AES GCM

Avatar

Avatar
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile
salvatore_dange
Level 1

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
Contributor
MVP
Milan_Vucetic
MVP

Likes

163 likes

Total Posts

380 posts

Correct Reply

134 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

163 likes

Total Posts

380 posts

Correct Reply

134 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile
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
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile
salvatore_dange
Level 1

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
Validate 1
MVP
Darren_Bowers
MVP

Likes

75 likes

Total Posts

253 posts

Correct Reply

81 solutions
Top badges earned
Validate 1
Affirm 50
Establish
Give Back 3
Applaud 25
View profile

Avatar
Validate 1
MVP
Darren_Bowers
MVP

Likes

75 likes

Total Posts

253 posts

Correct Reply

81 solutions
Top badges earned
Validate 1
Affirm 50
Establish
Give Back 3
Applaud 25
View profile
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