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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AES CBC encryption

lise-maried3889
Level 2
Level 2

Hi

 

I need to implement a crypting function which will use "encryption_aescbcEncrypt" 

It's the first time I implement it so i'm a bite lost of how to done it in the console.

Could you please help me with the code i need to use ? I've already the Key but i don't know if i must create a JS Code and call the parameter in the delivery in order to encrypt the information I want.

 

Any help would be appreciated

 

Thanks

3 Replies
lise-maried3889
Level 2
Level 2

Thanks David

 

But it not help me. We have developped a js code and on our html we have call the function but i get an error each time i test it.

 

Here is our code:

function WalletEncryption(CarteFid)
{
// Initialisation des paramètres de cryptage
var key = "MaCleAESDencryptagePreferee01234";

// Cryptage des paramètres données
var cryptParams = cryptString(CarteFid, key);

return cryptParams;
}

 

And what we have added on our html:

 

eval(yr_gene:WalletEncryption.js.data);


var cryptParams =  cryptString(targetData.LOYALTYCARDNUMBER, key);
lise-maried3889
Level 2
Level 2

hi David,

 

Your document are related to ACS not ACC .

So is there any people who could help me or who have already implemented an AEC CBC encryption ?

 

Rgds