Nodejs Password Encryption Algorithm Throws Exception When Converted

Nodejs Password Encryption Algorithm Throws Exception When Converted