# How to import "node-rsa" external library to Postman

**URL:** <https://community.postman.com/t/how-to-import-node-rsa-external-library-to-postman/33597>\
**Category:** Help Hub\
**Created:** [March 17, 2022, 4:40pm UTC](https://community.postman.com/t/how-to-import-node-rsa-external-library-to-postman/33597 "2022-03-17T16:40:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grarkeri](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@grarkeri](https://community.postman.com/u/grarkeri)\
**Post date:** [March 17, 2022, 4:40pm UTC](https://community.postman.com/t/how-to-import-node-rsa-external-library-to-postman/33597/1 "2022-03-17T16:40:59Z")

</div>

_My question_: How to import “node-rsa” external library to Postman

const NodeRSA = require(‘node-rsa’);

> **[GitHub - rzcoder/node-rsa: Node.js RSA library](https://github.com/rzcoder/node-rsa)**
>
> Node.js RSA library. Contribute to rzcoder/node-rsa development by creating an account on GitHub.

We tried to import the from the above link and linked to global env variable and in the pre scripts we are getting - cannot find module “node-rsa”

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 17, 2022, 6:50pm UTC](https://community.postman.com/t/how-to-import-node-rsa-external-library-to-postman/33597/2 "2022-03-17T18:50:52Z")

</div>

Hi there! 👋

I looked into this for you and found [a thread](https://community.postman.com/t/adding-external-libraries-to-postman/1971) that may be able to help.

This [blog post](https://blog.postman.com/api-testing-tips-from-a-postman-professional/#tip-5-reuse-code) also has some valuable tips to accomplish this 😄

---

<div class="post-metadata">

**Author:** ![grarkeri](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@grarkeri](https://community.postman.com/u/grarkeri)\
**Post date:** [March 17, 2022, 10:53pm UTC](https://community.postman.com/t/how-to-import-node-rsa-external-library-to-postman/33597/3 "2022-03-17T22:53:11Z")

</div>

Thanks Kevin, We tried these methods which is mention in the thread but not working. Is there any other way to import. currently cryptoJS does not have RSA algorithm to generate the signature.
