KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
http-signature-header
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
serverless-ignore
:
Add a .slsignore to you serverless project
LTE-Router-Huawei-B618s-22d
:
bash scripts to query status information and reset the router
SAWDUST
:
A version of the classic SAWDUST by Herbert Brün
ConsoleImage
:
print image in console!
window-maker.github.io
:
Window Maker homepage
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
http-signature-header
?
Download (.md)
# HTTP Signature Header _(http-signature-header)_ [](https://npm.im/http-signature-header) [](https://github.com/digitalbazaar/http-signature-header/actions/workflows/main.yaml) [](https://codecov.io/gh/digitalbazaar/http-signature-header) > A JavaScript library for creating and verifying HTTP Signature headers ## Table of Contents - [Background](#background) - [Install](#install) - [Usage](#usage) - [Contribute](#contribute) - [Commercial Support](#commercial-support) - [License](#license) ## Background **[HTTP Signatures IETF draft](https://tools.ietf.org/html/draft-cavage-http-signatures)** ## Install To install locally (for development): ``` git clone https://github.com/digitalbazaar/http-signature-header.git cd http-signature-header npm install ``` ## Usage ```js import { createAuthzHeader, createSignatureString } from '@digitalbazaar/http-signature-header'; const requestOptions = { url, method: 'POST', headers } const includeHeaders = ['expires', 'host', '(request-target)']; const plaintext = createSignatureString({includeHeaders, requestOptions}); const data = new TextEncoder().encode(plaintext); const signature = base64url.encode(await signer.sign({data})); const Authorization = createAuthzHeader({ includeHeaders, keyId: signer.id, signature }); ``` ## Contribute Please follow the existing code style. PRs accepted. If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification. ## Commercial Support Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com ## License [BSD-3-Clause](LICENSE.md) © Digital Bazaar