Skip to content

Commit 261a015

Browse files
authored
perf: reduce PBKDF2 iterations to 100k for faster registration (#6)
600k → 100k iterations. Registration drops from 167ms to 31ms (5.4x). Still well above security minimum for a game backend. Requires nova_auth >= novaframework/nova_auth#2.
1 parent 1c29b8d commit 261a015

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

config/dev_sys.config.src

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
}}
1111
]}
1212
]},
13+
{nova_auth, [
14+
{pbkdf2_iterations, 100000}
15+
]},
1316
{nova, [
1417
{use_stacktrace, true},
1518
{environment, dev},

config/prod_sys.config.src

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
}}
1111
]}
1212
]},
13+
{nova_auth, [
14+
{pbkdf2_iterations, 100000}
15+
]},
1316
{nova, [
1417
{use_stacktrace, false},
1518
{environment, prod},

0 commit comments

Comments
 (0)