Documentation
    Preparing search index...

    Phc formatter is used to serialize a hash to a phc string and deserialize it back to a PHC object.

    Type Parameters

    • Params extends Record<string, string | number> = Record<string, string | number>
    Index

    Constructors

    Methods

    Constructors

    • Type Parameters

      • Params extends Record<string, string | number> = Record<string, string | number>

      Returns PhcFormatter<Params>

    Methods

    • Serialize salt and hash with predefined options.

      Parameters

      • salt: Buffer
      • hash: Buffer
      • options: { id: string; params?: Params; version?: string | number }

      Returns string