Problem/Motivation

Identified by Claude Fable:

`checkDependencies($text, $key)` receives the key but only checks that Halite exists. A wrong-length key therefore isn't caught at profile-save validation; it surfaces later as a runtime `InvalidKey`. Adding a 32-byte length check here gives a clean validation error instead (length isn't secret, so a plain comparison is fine).

Issue fork sodium-3608554

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ptmkenny created an issue. See original summary.

  • ptmkenny committed 71345504 on 3.0.x
    feat: #3608554 Validate key length when checking dependencies
    
    By:...
ptmkenny’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.