Skip to content

Conversation

@jasonborden
Copy link
Contributor

@jasonborden jasonborden commented Jun 28, 2024

Description:
Implements CRYPT-YESCRYPT as a password storage scheme

Issue: #6241

Reviewed by: @progier389

@jasonborden
Copy link
Contributor Author

This PR uses the same defaults parameters as the distros that use yescrypt: 24 b64 salt chars and j9T params. To use yescrypt the system will need libxcrypt 4.2 or higher.

Copy link
Contributor

@progier389 progier389 left a comment

Choose a reason for hiding this comment

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

Looks good,
but I would prefer that we use #define for the standard crypt algorithm id rather than embedding directly the string in the code.

Maybe a bit picky but this code is sensitive in term of security,
and it is better make it as easily readable as possible ...

/* Standard Crypt Algorithms identifiers (with usual options when needed) */
#define CRYPT_ALGO_ID_SHA512 "$6$"
#define CRYPT_ALGO_ID_YESCRYPT "$y$j9T$"

@jasonborden jasonborden force-pushed the crypt_pwd-yescrypt branch from c42e1dd to ff86b69 Compare July 2, 2024 05:46
Description:
Implements CRYPT-YESCRYPT as a password storage scheme
@jasonborden jasonborden force-pushed the crypt_pwd-yescrypt branch from ff86b69 to 44108c3 Compare July 2, 2024 05:51
@jasonborden
Copy link
Contributor Author

Updated with suggested #defined algorithm IDs and comment.

Copy link
Contributor

@progier389 progier389 left a comment

Choose a reason for hiding this comment

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

Looks good.

@progier389 progier389 linked an issue Jul 2, 2024 that may be closed by this pull request
@progier389 progier389 merged commit f6481f6 into 389ds:main Jul 2, 2024
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.

Add support for CRYPT-YESCRYPT

2 participants