- Replace SHA-256 hex hashing with bcrypt (cost 10) for password storage - VerifyPassword now uses bcrypt.CompareHashAndPassword - HashPassword returns (string, error) instead of string - Add IsBcryptHash helper to detect legacy hashes for future migration - Remove duplicate verifyPassword from api.go (already done in prev commit) - Promote golang.org/x/crypto to direct dependency
15 lines
391 B
Modula-2
15 lines
391 B
Modula-2
module gitea.mrixs.me/Mrixs/MrixsCraft-server
|
|
|
|
go 1.25.0
|
|
|
|
require github.com/jackc/pgx/v5 v5.6.0
|
|
|
|
require (
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
|
|
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
|
golang.org/x/crypto v0.52.0
|
|
golang.org/x/sync v0.20.0 // indirect
|
|
golang.org/x/text v0.37.0 // indirect
|
|
)
|