Hi all,
I am new to gateway script, I have created encryption using AES 256 GCM algorithm using Crypto module in Gateway script. My Requirement is I need to create dynamic session key for each request and I need to encrypt with that session key. In XSLT I can achieve using
dp:generate-key() using AES algorithm but In Gatewayscript I am not sure how to generate session key specific to AES.
It is working in shared secret key with alias name as
'name:sharedsecretkey',If I hardcoded the key with 256 bit also error coming as "key not found" and in the parameter I have used Buffer.from(key) in this its coming error as "key length shoud be 256 bit...Invalid length"
I have tried the
transform-xslt() function in Gatewayscript and from XSLT I got the sessionkey values but if I pass the session key parameter in the
createcipheriv() method I am getting the error as "the ******* key is not found".
Can anyone share sample encryption with dynamic session key in Gatewayscript it will be helpful for me to understand.
Thanks in advance
Thanks
Hari
------------------------------
Hari Prasanth
------------------------------