Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
nlapiEncrypt Issue
I have a custom field of type Password in which I store a 4 digit PIN number.
I also have a SuiteScript that uses nlapiEncrypt to encrypt a 4-digit number entered on a form so that it may be compared with the value stored in the custom field.
I have uncovered at least one instance where the encrypted value stored in the password field and the output of the call to nlapiEncrypt do not match, given the same 4-digit input value.
Example:
Input Value: 1234
Password Value: fcffee3dcb2083ed4da3f12e9422b2d3854b6a6a
nlapiEncrypt Value: fcffee3dcb2083ed4da3f12e9422b2d3854b6a6a
0