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

knop_crypthash - Set default cost to a random value between 8000 and 12000 #113

Open
stevepiercy opened this issue Jul 11, 2015 · 0 comments
Milestone

Comments

@stevepiercy
Copy link
Member

In the type definition for knop_crypthash, make cost an optional integer.

cost::integer = 1

Then override the default value with a random value.

#_cost == 1 ? #_cost = integer_random(8000, 12000)

Thus the user can calculate their own cost and pass it in or let Knop set it.

@stevepiercy stevepiercy added this to the 0.2 milestone Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant