• Hashes a password using Argon2id algorithm.

    Parameters

    • password: string

      The plain text password to hash.

    Returns Promise<string>

    A promise that resolves with the hashed password.

    (BasaltError) - Throws an error if the password is empty or if hashing fails. (CORE_SECURITY_KEY_ERROR.PASSWORD_EMPTY)

    (BasaltError) - Throws an error if the password is empty or if hashing fails. (CORE_SECURITY_KEY_ERROR.PASSWORD_HASHING_FAILED)