Can anyone help me to decrypt a password which is ...
# suitescript
s
Can anyone help me to decrypt a password which is encrypted by netsuite because I used a field whose type is 'password' Detail:-> I want to fetch a value of a custom-field whose type is 'password' , Now I got a encrypted value which is I am unable to decrypt. All the logic is written in a suitelet.
c
That is not how password fields are intended to work. Read the documentation: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2842731.html
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 real encrypted value. Ensure that customizations do not improperly use sensitive fields.
s
thanks for your reply , when i fetch the value from that custom field after loading the vendor record I got values like "3bb8bc9372134060d296a265ee2769a38ea84ab0213aa678298dc6cd2bb9a467" which i am unable to decrypt in normal form so i have to save this long string in another custom field and use that am i right ?
c
You cannot decrypt them. You encrypt the value you want to compare, then compare the encrypted values. The fields are intended for password validation, not storage & retrieval
You might want to explain what you're actually trying to do
s
yes , I want to explain
My task is something like that , Bacically the task is related to 'Login Validation' using a suitelet . in which there are two fields userId and Password and a submit button
b
s
ok i will try
Thank you Very much its worked