Skip to content

Update the default hashing algorithm used in signed cookies #324

@javiereguiluz

Description

@javiereguiluz

This bundle uses sha256 as the default hashing algorithm for signed cookies:

->scalarNode('hash_algo')->defaultValue('sha256')->end()

This might be no longer safe enough: https://en.wikipedia.org/wiki/SHA-2#Comparison_of_SHA_functions

Maybe we can move to sha3-256 or higher, which is also supported by PHP? https://www.php.net/manual/en/function.hash-algos.php

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