NDS Password#NDSPassword uses a RSA Cryptography to store an encrypted value that is derived from using the value supplied by the password in a non-reversible fashion.
The password value itself is never stored. The encrypted value can only be derived with the value of the password.
NDSPassword uses a RSA Cryptography
NCP's Primary Authentication Protocol explains many details about NDSPassword