scryptsy
scryptsy copied to clipboard
Improve Speed
This algorithm is slower than it needs to be. Revert internal buffer usage to improve speed. Consider analysis from this article: http://blog.ircmaxell.com/2014/03/why-i-dont-recommend-scrypt.html
Benchmark against: https://github.com/tonyg/js-scrypt
Did a quick informal benchmark of scryptsy against js-scrypt using params of {N: 64, r: 4, p: 4} and dkLen or 64. js-scrypt is slightly faster (wall-clock), but its memory footprint is much much greater. There's a lot of room for optimizations for scryptsy.
This is way faster (in node) now thanks to it using the pbkdf2 module, which can use the native sha256 in node 0.12 but falls back to a native JS module in node 0.10.
Thanks for the lib, works decently in chrome, but it is unusable in FF 44.0.2, locks up the browser forcing a hard close
@thinkloop as in, forever? That sounds like something to report to Mozilla...
it is very strange, firefox 44 has almost same speed as chrome 49 for pbkdf2
scrypt-async works well in all browsers, has zero locking for any chosen paramters, and I verified results against the node.js reference lib.