2024-01-01 21:11:32 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-03-18 12:36:00 +00:00
|
|
|
// This module is browser compatible.
|
2022-08-11 10:06:26 +00:00
|
|
|
|
|
|
|
/**
|
2022-08-11 11:51:20 +00:00
|
|
|
* Extensions to the
|
2024-01-31 22:19:46 +00:00
|
|
|
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API | Web Crypto}
|
2022-11-25 11:40:23 +00:00
|
|
|
* supporting additional encryption APIs, but also delegating to the built-in
|
|
|
|
* APIs when possible.
|
2022-08-11 10:06:26 +00:00
|
|
|
*
|
2024-06-03 04:10:27 +00:00
|
|
|
* ```ts no-assert
|
2024-04-29 02:57:30 +00:00
|
|
|
* import { crypto } from "@std/crypto/crypto";
|
2024-03-12 05:56:28 +00:00
|
|
|
*
|
|
|
|
* const message = "Hello, Deno!";
|
|
|
|
* const encoder = new TextEncoder();
|
|
|
|
* const data = encoder.encode(message);
|
|
|
|
*
|
|
|
|
* await crypto.subtle.digest("BLAKE3", data);
|
|
|
|
* ```
|
|
|
|
*
|
2022-08-11 10:06:26 +00:00
|
|
|
* @module
|
|
|
|
*/
|
|
|
|
|
2022-12-28 08:42:55 +00:00
|
|
|
export * from "./crypto.ts";
|
|
|
|
export * from "./timing_safe_equal.ts";
|