lacewing - v2.0.1
    Preparing search index...

    Function generateSecret

    • Generate a random HMAC secret at the algorithm's minimum size (default HS256 -> 256 bits). Always passes the entropy checks by construction.

      Type Parameters

      • const Alg extends string = "HS256"

      Parameters

      • algorithm: Alg = ...

      Returns LacewingKey<Alg>