Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 api refactor #7

Merged
merged 18 commits into from
Sep 9, 2023
Merged

#6 api refactor #7

merged 18 commits into from
Sep 9, 2023

Conversation

PhilippMDoerner
Copy link
Owner

closes #6

It shouldn't be possible for passwords to accidentally leak.
Thus a new type was introduced: `Password`
Now all `hashPassword` procs only accept that type.
They also now return `seq[byte]` which is a more correct representation
of a hash.
In turn, encodeHash accepts seq[byte] and encodes it itself.

For clarity purposes the `Hash` type was introduced for this.
@PhilippMDoerner PhilippMDoerner self-assigned this Sep 9, 2023
@PhilippMDoerner PhilippMDoerner merged commit 39e88cf into main Sep 9, 2023
3 checks passed
@PhilippMDoerner PhilippMDoerner deleted the #6-api-refactor branch September 9, 2023 18:07
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.

Refactor input/output API
1 participant