SHA 512 not available in Cryptography Section

I and @Sanket_Vyavahare are trying to convert a string into SHA 512 using Javascript code but it is producing a lot of errors in the code.

Error: [ Function Error ReferenceError: require is not defined]

Code:

Also, only SHA256 option is available under the Experimental Section.
Can anyone please guide us on how to convert a string in GlideSheet to SHA512.

1 Like

Why not use the plugin column?

Thanks for your response, @Darren_Murphy.

We need a sha512 encrypted string to integrate with a payment gateway. The payment gateway does not support sha256 encrypted string.

We could generate the sha256 string using plugin column.

Anything we can do here?

Apologies, I misread.

Can you show me the JavaScript code that isn’t working for you?

pfb the screenshot below

yeah, that won’t work.

Try the following:

const { sha512 } = await import("https://cdn.skypack.dev/js-sha512");
return sha512(p1);

3 Likes

This is amazing! It worked… Thank you very much, @Darren_Murphy! You are a rockstar!

2 Likes

Skypack rocks!

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.