Skip to content

jooby: Cookiesecret.getBytes() and value.getBytes() use the platform default charset #196

@xsalefter

Description

@xsalefter

secret.getBytes() and value.getBytes() use the platform default charset, which can produce different signatures across environments and break cookie validation (and is generally unsafe for cryptographic operations). Use an explicit charset (e.g., UTF-8) for both the secret and value bytes.

Originally posted by @Copilot in #194 (comment)

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