new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Authentication · all subjects

email and password/password configuration

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Password storage and hashing

Better Auth stores passwords in the `account` table with `providerId` set to `credential`. Passwords are hashed using `scrypt` algorithm, which is designed to be slow and memory-intensive to resist brute force attacks. OWASP recommends `scrypt` when `argon2id` is unavailable. `scrypt` is natively supported by Node.js.

Custom password hashing algorithm

Pass a custom password hashing algorithm by setting the `password` option in `emailAndPassword` configuration with `hash` and `verify` functions. Example using Argon2: import { hash, verify } from '@node-rs/argon2'; export async function hashPassword(password: string) { const result = await hash(password, opts); return result; } export async function verifyPassword(data: { password: string; hash: string }) { const result = await verify(data.hash, data.password, opts); return result; }

Give your agent this brain