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

Document OpenBSDBCrypt password handling #1742

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Marcono1234
Copy link

Previously the behavior was not explicitly documented, and it might not have been obvious that passwords longer than 72 bytes will be truncated.

@Marcono1234
Copy link
Author

Maybe it would also be good to apply this to https://github.com/bcgit/bc-csharp, but I am not familiar with C#. So if possible, could you do that please?

* of the reference implementation on OpenBSD
* of the reference implementation on OpenBSD.
* <p>
* Passwords are encoded using UTF-8. Encoded passwords longer than
Copy link
Author

@Marcono1234 Marcono1234 Jul 21, 2024

Choose a reason for hiding this comment

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

Regarding UTF-8: Do you think this wording here is misleading and it should say that this only applies when the password is provided as char[] (but not when provided as byte[])? Or is it fine like this?

And do you think it is clear enough that the "encoded passwords longer than ..." applies as well when users provide an already encoded password as byte[]?

@dghgit dghgit self-assigned this Sep 8, 2024
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