Hi Everyone, I have one problem with encrypting a...
# general
p
Hi Everyone, I have one problem with encrypting and decrypting strings by using the RSA algorithm in NetSuite. I tried to use the N/Crypto module, but this module supports only the AES algorithm and not the RSA algorithm. I checked that with NS support also, but they said this case is in enhancement so you can try to use third-party libraries. I tried to use the following libraries: "Node-RSA, Forge, Crypto, and JSencrypt.". But when I am adding the library path in SuiteScript, I am not able to save the script record. I am getting the undefined keyword. like that issue. Does anyone have an idea how we can use the RSA algorithm in NetSuite? Thank you in advance.
e
Check "Custom Modules" in NetSuite online docs, you can see there an example of how to load a 3rd party script.
p
Yes, I studied about custom modules. And the same way to use the third-party library is working for the AES algorithm. But I need to use the RSA algorithm. The below code is working for AES (symmetric cryptography) using a third-party library.