# This is the 1st commit message: Initial commit # This is the commit message #2: added whole syswtem becuz i forgot to keep up with the github # This is the commit message #3: hihi hiha # This is the commit message #4: added startServer.sh # This is the commit message #5: hihi hiha # This is the commit message #6: fixed some packages # This is the commit message #7: fixed every bug with the stupid oop # This is the commit message #8: Revert "fixed every bug with the stupid oop" This reverts commit d2255863aa44e2504f9f2cec9e1ae5d1094cb9cd. # This is the commit message #9: added prevention of breaking the system by manually filling in the project id # This is the commit message #10: fixed bug when adding bot # This is the commit message #11: made user-id not just count up from 0 # This is the commit message #12: fixed the issue where if you load project page it woulnt show the commands until you refresh the page
14 lines
329 B
JavaScript
Executable File
14 lines
329 B
JavaScript
Executable File
const bcrypt = require('bcrypt');
|
|
|
|
// Password to be hashed
|
|
const passwordToHash = 'password_to_hash';
|
|
|
|
// Hashing the password with bcrypt
|
|
bcrypt.hash(passwordToHash, 10, (err, hash) => {
|
|
if (err) {
|
|
console.error('Error hashing password:', err);
|
|
} else {
|
|
console.log('Hashed password:', hash);
|
|
}
|
|
});
|