问题 I am using nodeJS Crypto Module to encrypt password. Sample code: crypto.pbkdf2Sync(password, salt, 200, 64).toString('base64'); But I am not sure, whenever I call this method, following error shown TypeError: Object # has no method 'pbkdf2Sync' Please let me know what is the issues Thanks all 回答1: pbkdf2Sync was added to the Crypto module in version 0.9.3. You can either upgrade your installation of Node to 0.9.3 or higher, or you can use the asynchronous version of the function, crypto