Blockchain Commons Crypto TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function scryptOpt

    • Derive a key using Scrypt with custom parameters.

      Parameters

      • password: Uint8Array

        Password or passphrase

      • salt: Uint8Array

        Salt value

      • outputLen: number

        Desired output length

      • logN: number

        Log2 of the CPU/memory cost parameter N (must be <64)

      • r: number

        Block size parameter (must be >0)

      • p: number

        Parallelization parameter (must be >0)

      Returns Uint8Array

      Derived key