# How to generate signature

**URL:** <https://devforum.zoom.us/t/how-to-generate-signature/51102>\
**Category:** Web\
**Created:** [May 26, 2021, 2:46pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102 "2021-05-26T14:46:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![epenyblaise](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@epenyblaise](https://devforum.zoom.us/u/epenyblaise)\
**Post date:** [May 26, 2021, 2:46pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/1 "2021-05-26T14:46:25Z")

</div>

Hello,

In this [tutorial](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature) it is indicated that it is necessary to create a function on the server side which allows to generate signature based on inputs of dynamic meetings.

Below this tutorial there are lines of example codes with different technologies (PHP, Node.js, C #, Java, Python) :

 ![zoom-image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/3/73a70d4fde46848c4016a592a186a946d5f165d7.jpeg)

Does this line of example code need to be added to the index.js file?

How to create a server side function to generate signature?

Thank you in advance for your answers

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [May 26, 2021, 2:48pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/2 "2021-05-26T14:48:47Z")

</div>

Hi @epenyblaise,

This code should **not** be added to the index.js file, or any public-facing file, since it contains your API key and secret. Exposing this to the public puts your Zoom account at risk.

Instead, you should write your own functions in a backend language like PHP, Node.js, Java etc. Do you have experience with any of these languages?

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![epenyblaise](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@epenyblaise](https://devforum.zoom.us/u/epenyblaise)\
**Post date:** [May 26, 2021, 3:06pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/3 "2021-05-26T15:06:56Z")

</div>

Hi @alexmayo ,

I have experience using only PHP languages.

Before, I have already worked with Node.js, but I do not have a good command of this language.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [May 27, 2021, 11:45pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/4 "2021-05-27T23:45:27Z")

</div>

Hey @epenyblaise,

If you have experience using PHP, you can use our PHP example there for a reference as to how you can add this functionality to your backend. All the languages there are intended to show how to implement this with the backend of your app, not the frontend.

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![epenyblaise](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@epenyblaise](https://devforum.zoom.us/u/epenyblaise)\
**Post date:** [May 28, 2021, 1:18pm UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/5 "2021-05-28T13:18:19Z")

</div>

Hi @MaxM,

Is it possible to create a function a PHP with the sdk web zoom, because in the project folders there are JS folders and files?

Thank you for your reply

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 2, 2021, 1:06am UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/6 "2021-06-02T01:06:28Z")

</div>

Hey @epenyblaise,

Yes, absolutely, you would just want to use PHP and Javascript together. There are a few ways to do this and it’s a very common use case. Please see the following URL:

> <https://stackoverflow.com/questions/13787028/can-i-insert-php-and-javascript-code-in-the-same-html-file>

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 2, 2021, 11:06am UTC](https://devforum.zoom.us/t/how-to-generate-signature/51102/7 "2021-07-02T11:06:30Z")

</div>

Closed on July 2, 2021, 11:06am UTC

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