On 13.09.2024 at 10:09, Remi Collet wrote: > For now, these are provided in the xpass extension. > Main issue is Windows. > > => https://pecl.php.net/package/xpass
Yeah, it might be an issue to port this library to Windows. There is a vcpkg port[1], but only for Linux. I haven't had a closer look why; maybe it's just because libxcrypt uses autotools, maybe it's because they're using functionality not readily available on Windows. However, Windows support might not be that important anyway, because we're unlikely to ship the official builds with that library, since at least so far the stance was, that users should be able to run a minimal PHP build (core + mandatory extensions) without any external dependencies. Cf. ext/pcre, where Windows always uses the bundled libpcre2 (and there is still no (official) separate build of libpcre2). Anyhow, I had a glimpse at our own bundled crypt implementation, and it seems we have implementations of a couple of hashing algos there (e.g. crypt_sha256.c), what might not be the best idea given we also have implementations in ext/hash. We should consider to unify that (PHP next). [1] <https://github.com/microsoft/vcpkg/blob/9f22b3df4c33e312f919caff260edaee28b47e84/ports/libxcrypt/vcpkg.json> Christoph