dchest / scrypt-async-js

Fast "async" scrypt implementation in JavaScript
http://dchest.github.io/scrypt-async-js/
BSD 2-Clause "Simplified" License
139 stars 26 forks source link

What is the best value of R parameter? #39

Closed felgarte closed 6 years ago

felgarte commented 6 years ago

Most of the examples the value is 8, but when I decrease the number ('till 1) the execution time it goes down considerably.

Can someone explain to me what incidence R has and what is the lowest number to use it?

Thanks!

dchest commented 6 years ago

The best value for today's and near future computers is 8.

See: https://github.com/dchest/scrypt-async-js/issues/23#issuecomment-190666894

Good explanation: https://blog.filippo.io/the-scrypt-parameters/