Native support for Windows
tomfitzhenry opened this issue · 2 comments
There is native support for Darwin, FreeBSD and Linux, but not Windows. Performance on Windows, consequently, is poor.
Windows support would be appreciated!
The use of Unix headers (sys/mman.h
), https://github.com/wg/scrypt/blob/master/src/main/c/crypto_scrypt-nosse.c#L32 , that aren't available on Windows will make this harder.
I realise you won't want to change the C code, since it's a copy of the original scrypt code. Perhaps https://github.com/barrysteyn/scrypt-windows would be useful, which aims to compile scrypt on Windows, without changing any of the original code, and without depending on MinGW or Cygwin.
So it turns out MinGW exists, and allows you to build DLLs on Linux. How convenient. Further, this has already been done: FauxFaux@887936d . I'll prepare a pull request with the relevant commits.