Team, trying to encrypt a bank file using PGP. Got...
# suitescript
a
Team, trying to encrypt a bank file using PGP. Got help from @jeffmillies and @battk on how do use the OpenPGP library and works okay. What I am trying to do now is to read the keys from the Keys record in NetSuite using suitescript. Anyone has done this?
b
all stuff in netsuite's crypto modules are proprietary and dont work with anything else
no mixing and matching
a
so, that means I cannot store the keys there and read them via SuiteScript?
the alternative is to store these keys in a custom record…
b
you cant read keys period in suitescript
a
ok, thanks
k
Have you tried the N/ key module?
a
hi,no, I will take a look
r
Isn't there a new feature with 21.1, secrets management for this exact purpose. no need to store keys in a custom table. But I have not used it yet, just read it.
b
Secrets are used just like guids but you dont need to do a ridiculous ritual to create the guid generating field yourself
It still acts like a string template and you have no access to the actual secret in code