I haven't tested this myself, but reading Nginx's source code, it directly uses libc's crypt() function. Depending on your OS, you may have a sane crypt() implementation available, either bcrypt or glibc's SHA-256/SHA-512 scheme. It's worth a shot to see if you can use it with Nginx.