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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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