Hashes a plaintext password without blocking the event loop, for the portal
save path. Uses the async scrypt API so hashing a freshly-typed password
never stalls concurrent requests.
Parameters
password: string
Plaintext portal password.
Returns Promise<string>
Promise resolving to the encoded scrypt$salt$hash string.
Hashes a plaintext password without blocking the event loop, for the portal save path. Uses the async scrypt API so hashing a freshly-typed password never stalls concurrent requests.