Jump to content

creativiii

Members
  • Posts

    9
  • Joined

  • Last visited

Community Answers

  1. creativiii's post in Where is password salt stored? was marked as the answer   
    Nevermind! Figured it out. For future reference, this is how you compare IPB passwords from Node.
    const bcrypt = require("bcrypt"); // convert the hashing algorithm from 2y to 2a let encrypted = "$2a$10$ykiLOC/Lu24CIGUiJmH.1eYlIRvdfBhrd2qEBukwU4Qjmx1UWM96e"; let plaintext = "mypassword"; bcrypt.compare(plaintext, encrypted, function (err, result) { console.log(result); }); I verified this with my own password and it works 😁
×
×
  • Create New...