Skip to content

Remove unused bcrypt password hashing code #1626

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

Merged
merged 1 commit into from
Apr 5, 2025
Merged

Conversation

mus65
Copy link
Contributor

@mus65 mus65 commented Apr 5, 2025

Contributes to #1482 .

The BCrypt code was originally ported from the sshj implementation which in turn seems to originate from mindrot jBCrypt .

The code currently also contains the BCrypt password hashing functionality which isn't actually used by SSH.NET . This PR reduces the code to the necessary pbkdf functionality. sshj did a similiar cleanup, so this PR actually brings it closer the original source again.

Regarding #1482 : I don't think the pbkdf functionality can be replaced by BouncyCastle, since it only seems to contain APIs for the password hashing functionality. Maybe the blowfish hashing part could be replaced by BouncyCastle (but I'm not familiar enough with cryptography to actually try this).

@Rob-Hague Rob-Hague merged commit ad17482 into sshnet:develop Apr 5, 2025
4 checks passed
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