Login service computes password hashes on a single thread #46

Open
opened 2024-08-24 13:21:48 +02:00 by liquidev · 0 comments
liquidev commented 2024-08-24 13:21:48 +02:00 (Migrated from github.com)

I was kind of lazy and implemented password hashing directly in the database, which is single-threaded. Argon2 is a really compute-heavy hash function so we should probably compute it asynchronously and offload it to multiple cores. (Preferably remove the need for it completely, we could use session tokens which are not as hard to compute...)

I was kind of lazy and implemented password hashing directly in the database, which is single-threaded. Argon2 is a really compute-heavy hash function so we should probably compute it asynchronously and offload it to multiple cores. (Preferably remove the need for it completely, we could use session tokens which are not as hard to compute...)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: liquidex/rkgk#46
No description provided.