We are trying to use N/crypto module for encryptio...
# sdf
s
We are trying to use N/crypto module for encryption and while creating secret key, we need to pass guid/secret id. Can we create guid at runtime in NetSuite without using form? We are getting error AN_ERROR_OCCURRED_WHILE_DECRYPT_PASSWORDGUID if we hardcode guid. We are looking for APIs similar to nlapiEncrypt/nlapiDecrypt without using secret or netsuite form. Could anyone help us?
b
used the same way as GUIDS, its just that you dont need to create the secret key field
s
Even there were couple of issues https://netsuiteprofessionals.slack.com/archives/C42JX79UZ/p1623836967089500 with secrets management as well, we don’t want to use secrets management. Is it possible to use N/crypto library with hardcoded key without using form field or secret?
b
nope, N/crypto requires you to store your secret/password in netsuite