Skip to content

MacOS Secret Key not generating correctly #268

@Yalu64

Description

@Yalu64

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.28.1

Plugin version

7.5.1

Node.js version

22.14.0

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

15.4.1

Description

When generating a secret-key on MacOS, created key will be 67 or 68 bits instead of the 32 bits expected.

Link to code that reproduces the bug

unavailable

Expected Behavior

  1. Using the command in Terminal

npx @fastify/secure-session > secret-key

  1. 32 bit Secret-Key file being generated

Actual behaviour:

Secret-Key file having 67 bits instead of 32, resulting in the key not working. If the same command is performed on Windows, there appears to be no issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions