import bcrypt from 'bcryptjs'

export async function hashPassword(password: string): Promise<string> {
    const salt = await bcrypt.genSalt(12)
    return await bcrypt.hash(password, 12)
}

export async function verifyPassword(password: string, hashedPassword: string): Promise<boolean> {
    return await bcrypt.compare(password, hashedPassword)
}
