Skip to content

fix: switch from uuid1 to uuid4 for better randomness#2435

Open
RinZ27 wants to merge 1 commit into
dpgaspar:masterfrom
RinZ27:fix/predictable-hashes-uuid4
Open

fix: switch from uuid1 to uuid4 for better randomness#2435
RinZ27 wants to merge 1 commit into
dpgaspar:masterfrom
RinZ27:fix/predictable-hashes-uuid4

Conversation

@RinZ27

@RinZ27 RinZ27 commented Mar 1, 2026

Copy link
Copy Markdown

Description

Switching from uuid.uuid1() to uuid.uuid4() for generating registration hashes and unique filenames ensures better randomness. Since UUID1 is generated using the host's MAC address and current time, it can be somewhat predictable in certain environments. Moving to UUID4 eliminates this predictability, which is a security best practice for generating sensitive tokens like account activation hashes. This change improves the overall robustness of the user registration process.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Is CRUD MVC related.
  • Is Auth, RBAC security related.
  • Changes the security db schema.
  • Introduces new feature
  • Removes existing feature

@RinZ27 RinZ27 force-pushed the fix/predictable-hashes-uuid4 branch from 66b8200 to 5770914 Compare March 1, 2026 23:50
@RinZ27 RinZ27 force-pushed the fix/predictable-hashes-uuid4 branch from 5770914 to 2deb2a2 Compare March 1, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant