CryptoJS.enc.Base64.stringify(hash) conversion

Hello
I have this code in js. To make this code in node red, I have used JSON node and then cryptojs decode Utf8 and then cryptojs encode base64.
After this all, still I am not getting the values of js and node red output same
Can anyone please help me to make the js code in node red

Can you provide sample data (using an inject node) and a demo flow. Please also include information on what the end result is supposed to look like?