Skip to content

Check for SALT length - #7

Merged
TheRipperoni merged 2 commits into
mainfrom
aitorres/salt-length
Oct 22, 2025
Merged

Check for SALT length#7
TheRipperoni merged 2 commits into
mainfrom
aitorres/salt-length

Conversation

@aitorres

Copy link
Copy Markdown
Contributor

This PR catches a potential issue when using a SALT value with length less than 8.

From argon2's documentation, 8 is the minimum length for a salt value.

As of now, the invite code manager just panics with this error:

Screenshot 2025-10-17 at 11 47 28 PM

This change handles it gracefully with a more helpful error message:

Screenshot 2025-10-17 at 11 48 02 PM

@TheRipperoni
TheRipperoni self-requested a review October 22, 2025 04:19

@TheRipperoni TheRipperoni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheRipperoni
TheRipperoni merged commit 374a5d8 into main Oct 22, 2025
1 check passed
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.

2 participants