Skip to content

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