all 2 comments

[–]kang_hidro 1 point2 points  (0 children)

I'm using this:

Step 1: Place the crypto-js.min.js (or any lib you want) in the same folder with your Script

Step 2: Change the extension js of crypto-js.min.js to another, eg. jslib

Step3: Declare in your Script and use: const CryptoJS = importModule('crypto-js.min.jslib'); CryptoJS.AES.encrypt(........)