Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Apr 24, 2025

The option specifies the digest algorithm to hash the session id when generating the filename for this session's FileStore file. It is defaulted to "MD5" because of backward compatibility for now.

nobu added 5 commits November 26, 2025 16:09
The option specifies the digest algorithm to hash the session id when
generating the filename for this session's FileStore file.  It is
defaulted to "MD5" because of backward compatibility for now.
@nobu nobu force-pushed the filestore-digest-option branch from 43696ef to c66e0f4 Compare November 26, 2025 07:41
require 'digest'
algorithm = Digest(algorithm)
end
digest = algorithm.hexdigest(session_id)[0, option['length'] || 16]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about just defaulting to the full length of the digest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants