Encryption and hashing using crypto-js

I know this thread is old and this may be a stupid question but I’m very new to coding and would appreciate some help. I’m not sure of what to use for the secret and string2string variables. Also, I need to place the hash in my code to create functionality for my external API but am not able to do so with my current code which I created using the wix articles as well as forum research. I can provide the codes/screenshots of my editor if need be. Please help me! If any of you are available and willing to do so, I would forever be indebted. @yoav-wix @givemeawhisky @yisrael-wix @retailshopprs

@tennedavid note that you can now use npm packages in your front-end page code, check out this for more info:
https://www.wix.com/corvid/forum/corvid-tips-and-updates/you-can-now-officially-use-npm-packages-in-your-front-end-page-code

[quote=Hi Daniel,
You don’t need to modify anything, just copy-paste. Let me explain it.

Step 1
Create the JS files in your public folder of website. Ex. core.js
Copy the whole code from https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/coreldraw-torrent.
2 to your public/core.js.
Do the same for other JS files, whichever you need.

Step 2
In your main service module file(ex. service.jsw), I mean, from where you would call the CryptoJS function,
import the cryptojs and use it as follows

import * as CryptoJS from ‘public/crypto-js.js’;
export function conversion(){
var secret = “Pasw0rd@123”;
var string2Sign = “Welcome to the world of programming”;
var hash = CryptoJS.HmacSHA256(string2Sign, secret);
var signature = CryptoJS.enc.Base64.stringify(hash);
}
Hope it’s clear now.

Regards,
Raj
[/quote]

Did you encounter any challenges or have specific questions while following the provided steps for integrating CryptoJS into your website, and is there any additional clarification needed in implementing these instructions?

Broken link??? Or was it deleted of a good reason ?