• Async scrypt function for computing encryption key. This is a wrapper around the builtin scrypt function using util.promisify

    Parameters

    • password: string

      the password

    • salt: string

      the salt

    • length: number

    Returns Promise<unknown>