We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b168e97 commit 6dda7deCopy full SHA for 6dda7de
Background Scripts/Encrypt & decrypt payload via base64/code.js
@@ -0,0 +1,12 @@
1
+var obj ={};
2
+obj.name = 'Mohit Kaushik';
3
+obj.email ='Mohit.1@abc.com';
4
+obj.contact = '1234567890';
5
+
6
+var str = JSON.stringify(obj,null,4);
7
8
+var encryption = GlideStringUtil.base64Encode(str);
9
+gs.info(encryption);
10
11
+var decrypt = GlideStringUtil.base64Decode(encryption);
12
+gs.info(JSON.stringify(decrypt,null,2));
Background Scripts/Encrypt & decrypt payload via base64/readme.md
@@ -0,0 +1 @@
+This code is an example to encrypt or decrypt the payload using base64Encode and decode methods of GlideStringUtil API.
0 commit comments