Ive seen cryptoJS used. Dont expect to decrypt or ...
# suitescript
b
Ive seen cryptoJS used. Dont expect to decrypt or encrypt medium sized files without errors.
s
Do you have any sample code which I can use it for reference @battk
b
you can take a look at the example at https://www.npmjs.com/package/crypto-js
otherwise you might want to say what you are trying to do
s
I looked into it. But I was wondering How will I use this in my userEvent/Suitelet?
Do I need to refer only file which I will use? For eg if I need to SHA256. Should I use only that particular file ? @battk
b
when i did it, i was lazy and just included everything
s
Lol. You mean you downloaded all the files and included in your script?
b
the file named crypto-js.js includes everything
use that in your script and you don't need to gather different files
s
I am not getting that particular file.
b
did you follow the install instructions that say to do
npm install crypto-js
s
Sry I am not good with NPM
But I still tried running the command and it created a package-json file in my project location
b
you may want to eventually learn how to use npm. Its the standard way to get javascript packages
but you can get crypto-js at a javascript cdn
s
Thank You @battk
Its work like cham...