const bcrypt = require('bcryptjs');

async function generateHash() {
  const password = 'admin123';
  
  console.log('Generando hash para:', password);
  
  // Generar nuevo hash
  const hash = await bcrypt.hash(password, 10);
  console.log('Nuevo hash:', hash);
  
  // Verificar que funciona
  const isValid = await bcrypt.compare(password, hash);
  console.log('¿Es válido?:', isValid);
}

generateHash();