Skip to content

Add support for yescrypt #447

Closed
Closed

Description

@troglobit

Classification:

  • Bug report
  • Feature request
  • Question (see Discussions)

Description:

A few people so far have asked about support for alternative password crypts, https://en.wikipedia.org/wiki/Yescrypt is possibly the most interesting since. This is a feature currently not possible to add since ietf-system.yang has a limitation to which crypts are available, see RFC7317 for details:

typedef crypt-hash {
  type string {
    pattern
      '$0$.*'
      + '|$1$[a-zA-Z0-9./]{1,8}$[a-zA-Z0-9./]{22}'
      + '|$5$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}'
      + '|$6$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{86}';
   }
   description
     "The crypt-hash type is used to store passwords using
      a hash function.  The algorithms for applying the hash
      function and encoding the result are implemented in
      various UNIX systems as the function crypt(3).

      A value of this type matches one of the forms:

      $0$<clear text password>
      $<id>$<salt>$<password hash>
      $<id>$<parameter>$<salt>$<password hash>

      The '$0$' prefix signals that the value is clear text.  When
      such a value is received by the server, a hash value is
      calculated, and the string '$<id>$<salt>$' or
      $<id>$<parameter>$<salt>$ is prepended to the result.  This
      value is stored in the configuration data store.

To enable support for this the current investigation has detailed the following issues:

  • Add a deviation the IETF system password type to include $y$
  • Migrate from libgcrypt to libxcrypt, the former does not have yescrypt

You can help out by sponsoring the development, or contributing a pull request for its support. Use this issue for discussions around this topic.

Activity

  1. added
    enhancement
    triage
    on May 15, 2024
  2. self-assigned this
    on Jun 16, 2024
  3. moved this to In progress in Infix & C:oon Jun 16, 2024
  4. added this to the Infix v24.06 milestone on Jun 16, 2024
  5. added 4 commits that reference this issue on Jun 16, 2024
    6aad147
    8f669b5
    4e024b8
    b2e6b5d
  6. linked a pull request that will close this issueSimplify defaults #480on Jun 20, 2024
  7. removed
    triage
    on Jun 20, 2024
  8. moved this from In progress to Done in Infix & C:oon Jun 25, 2024
  9. added a commit that references this issue on Jun 26, 2024
    3cbafd8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions