Viktorani API - v0.0.8
    Preparing search index...

    Function generatePassphrase

    • Generate a human-readable passphrase from random dictionary words.

      Parameters

      • wordCount: number = 4

        Number of words to include (default 4).

      Returns string

      A hyphen-separated passphrase, e.g. 'tiger-lamp-cloud-seven'.

      Used as the Gun.js SEA encryption key displayed to players via QR code so they don't need to type a hex string.

      const passphrase = generatePassphrase()   // 'ember-kite-coral-prism'
      const short = generatePassphrase(2) // 'jade-drift'