Similar to pwd. Designed with promises for cleaner code, especially with generators. Also, pwd doesn't actually work with generators, and I'm too lazy to fix it. bcrypt also doesn't support node 0.11 yet :( but not installing C/C++ addons to do password hashing is always nice.
These options can also be set and changed by doing pswd[option] = Integer.
length <128> - salt and pbkdf2 byte lengthiterations <12000> - pbkdf2 iteration countCreates a hash from the password with optional salt, iterations, and length arguments (used for comparision).
Compare a password with a hash. okay is a Boolean.