# SHA 512 not available in Cryptography Section

**URL:** <https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317>\
**Category:** Ask for Help\
**Created:** [April 9, 2023, 12:45pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317 "2023-04-09T12:45:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishal\_Chatre](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vishal_chatre/32/57282_2.png) [@Vishal\_Chatre](https://community.glideapps.com/u/Vishal_Chatre)\
**Post date:** [April 9, 2023, 12:45pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/1 "2023-04-09T12:45:03Z")

</div>

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.

 ![Screenshot 2023-04-09 at 6.20.57 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5f6d36d78e6f0a720f79c1f0418c4d8fbe03d358.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 9, 2023, 12:51pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/2 "2023-04-09T12:51:37Z")

</div>

Why not use the plugin column?

> **[Glide • SHA256 Hash column](https://www.glideapps.com/plugins/sha256)**
>
> The SHA256 column takes a string value and returns the 256 length string hash.

 ![CleanShot 2023-04-09 at 20.50.37@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/2/825fa903fe5b2fd0708962a7c03c24a9d582b1c5.jpeg)

---

<div class="post-metadata">

**Author:** ![Sanket\_Vyavahare](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sanket_vyavahare/32/53264_2.png) [@Sanket\_Vyavahare](https://community.glideapps.com/u/Sanket_Vyavahare)\
**Post date:** [April 9, 2023, 12:57pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/3 "2023-04-09T12:57:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 9, 2023, 1:13pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/4 "2023-04-09T13:13:53Z")

</div>

Apologies, I misread.

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

---

<div class="post-metadata">

**Author:** ![Sanket\_Vyavahare](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sanket_vyavahare/32/53264_2.png) [@Sanket\_Vyavahare](https://community.glideapps.com/u/Sanket_Vyavahare)\
**Post date:** [April 9, 2023, 1:26pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/5 "2023-04-09T13:26:38Z")

</div>

pfb the screenshot below

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/f/ef761405e2deb99c6c09259b9e7907f999b9c81b.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 9, 2023, 1:29pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/6 "2023-04-09T13:29:37Z")

</div>

yeah, that won’t work.

Try the following:

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

```

 ![CleanShot 2023-04-09 at 21.28.38@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b0e7aab683de38a0e314956375254ef428a6f733.jpeg)

---

<div class="post-metadata">

**Author:** ![Sanket\_Vyavahare](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sanket_vyavahare/32/53264_2.png) [@Sanket\_Vyavahare](https://community.glideapps.com/u/Sanket_Vyavahare)\
**Post date:** [April 9, 2023, 2:12pm UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/7 "2023-04-09T14:12:47Z")

</div>

> [@Darren\_Murphy](#):
>
> ```auto
> const { sha512 } = await import("https://cdn.skypack.dev/js-sha512");
> return sha512(p1);
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 10, 2023, 12:06am UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/8 "2023-04-10T00:06:38Z")

</div>

Skypack rocks!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 11, 2023, 12:07am UTC](https://community.glideapps.com/t/sha-512-not-available-in-cryptography-section/60317/9 "2023-04-11T00:07:34Z")

</div>

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