Skip to content

chore: make sha1 the default algo - #98

Merged
Uzlopak merged 5 commits into
fastify:masterfrom
kurtextrem:sha1
Feb 13, 2023
Merged

chore: make sha1 the default algo#98
Uzlopak merged 5 commits into
fastify:masterfrom
kurtextrem:sha1

Conversation

@kurtextrem

Copy link
Copy Markdown
Contributor

Checklist

Comment thread package.json Outdated
Comment thread fnv1a.js
Comment thread README.md Outdated
Comment thread README.md Outdated
@kurtextrem

Copy link
Copy Markdown
Contributor Author

Updated according to your review and added recommendations based on our convo in #91

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@kurtextrem

Copy link
Copy Markdown
Contributor Author

had to fix a linter warning, sorry (my git removed a newline from fnv1a.js)

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@Uzlopak

Uzlopak commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

We could add a validation for the algorithm. So that we can throw on plugin registration and not on the first request.

Like https://github.com/fastify/fastify-cookie/blob/485db2a5676eb7c839fe9687db230777f4077a69/signer.js#L34

@Uzlopak

Uzlopak commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

LOL we have that already.

@Uzlopak Uzlopak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Uzlopak
Uzlopak merged commit d2925da into fastify:master Feb 13, 2023
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.

4 participants