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

Use bcrypt with pc-dart #84

Open
konsultaner opened this issue Feb 23, 2021 · 1 comment
Open

Use bcrypt with pc-dart #84

konsultaner opened this issue Feb 23, 2021 · 1 comment

Comments

@konsultaner
Copy link
Contributor

I used pc-dart to implement some authentication processes in my network library connectanum-dart. For one of the authentication processes I need to load ed25519 keys. I tried to implement loading from open ssh key format. This works well. If the files private key is encrypted, bcrypt_pbkdf is used.

Since pc-dart does not support bcrypt, I translated the original jbcrypt code to dart. The code can be found in my library.

The code it self is just slightly changed, but works with the given tests and vectors. It is just not very fast for some reasons.

I would love to use pbkdf from pc-dart in conjunktion with bcrypt. Could you either add bcrypt to your code or give me a hint how to use my code to provide a bcrypt digerster to make it work?

@konsultaner
Copy link
Contributor Author

konsultaner commented Mar 3, 2021

I fixed up performance with bcrypt. I guess its kind of usable now. [Update] The performance is good to go now. pretty much equal to what the original implementation has.

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

No branches or pull requests

1 participant