I am setting up a new user record and want to set the password field type to "Password". Checking the docs I found the following quip -
"This lets you create a field that is encrypted in the database. When you view the record it will always show a fixed number of characters regardless of how long the password is. When validating, you pull the encrypted password value into a hidden field and use custom code to encrypt the value the user typed and compare it with the actual encrypted value."
That all makes sense, but I have not been able to figure out what "custom code" is used for the encryption. The Encryption API mentions that sha1 is the algorithm used for password fields, however after running the password string through sha1 I get a different hash than Netsuite is storing so they must be using a custom key scheme.
tl;dr - Does anyone know how to duplicate Netsuite's hash function for password fields so I can validate the value?