summaryrefslogtreecommitdiff
path: root/std/hash/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/hash/mod.ts')
-rw-r--r--std/hash/mod.ts34
1 files changed, 0 insertions, 34 deletions
diff --git a/std/hash/mod.ts b/std/hash/mod.ts
deleted file mode 100644
index 7ab4dbbc4..000000000
--- a/std/hash/mod.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-
-import { Hash } from "./_wasm/hash.ts";
-import type { Hasher } from "./hasher.ts";
-
-export type { Hasher } from "./hasher.ts";
-export type SupportedAlgorithm =
- | "md2"
- | "md4"
- | "md5"
- | "ripemd160"
- | "ripemd320"
- | "sha1"
- | "sha224"
- | "sha256"
- | "sha384"
- | "sha512"
- | "sha3-224"
- | "sha3-256"
- | "sha3-384"
- | "sha3-512"
- | "keccak224"
- | "keccak256"
- | "keccak384"
- | "keccak512";
-
-/**
- * Creates a new `Hash` instance.
- *
- * @param algorithm name of hash algorithm to use
- */
-export function createHash(algorithm: SupportedAlgorithm): Hasher {
- return new Hash(algorithm as string);
-}