-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8eab4c
commit 2d22db2
Showing
5 changed files
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# deno_aws_sign_v4 | ||
|
||
![ci](https://github.com/lucacasonato/deno_aws_sign_v4/workflows/ci/badge.svg) | ||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].0/mod.ts) | ||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].1/mod.ts) | ||
|
||
Generates AWS Signature V4 for AWS low-level REST APIs. | ||
|
||
|
@@ -16,7 +16,7 @@ credentials in following ENV variables: | |
- AWS_REGION | ||
|
||
```typescript | ||
import { AWSSignerV4 } from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import { AWSSignerV4 } from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
const signer = new AWSSignerV4(); | ||
const body = new TextEncoder().encode("Hello World!"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export { hmac } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import { createHash } from "https://deno.land/std@0.84.0/hash/mod.ts"; | ||
import { createHash } from "https://deno.land/std@0.95.0/hash/mod.ts"; | ||
export function sha256Hex(data: string | Uint8Array): string { | ||
const hasher = createHash("sha256"); | ||
hasher.update(data); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters