const bcrypt = require('bcryptjs'); const szoveg = 'titok'; const hash = bcrypt.hashSync(szoveg); console.log(hash);