Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

@hyperttp/crypto

Русский

Cryptographic plugins for HyperTTP: HTTP Digest, HMAC request signing, signature verification, and replay protection.

Installation

npm install @hyperttp/crypto @hyperttp/types

Quick start

import { withCrypto } from "@hyperttp/crypto";

client.use(
  withCrypto({
    hmac: {
      secret: process.env.HMAC_SECRET!,
      nonceHeaderName: "x-nonce",
      includeHeaders: ["digest", "content-type"],
    },
  }),
);

withCrypto() without options creates a SHA-256 Digest header only. HMAC signing requires an explicit secret and must not be used with secrets exposed to browser or mobile bundles.

See the Russian documentation for API details, server-side verification, and atomic nonce storage requirements.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages