From de2a7e97edda6d5b93d69cd183b4c8bdb47fb9fc Mon Sep 17 00:00:00 2001 From: James Broadberry Date: Mon, 18 May 2020 23:07:52 +0100 Subject: [PATCH] Removed reference to --allow-read flag since that's only needed when using local file paths --- README.md | 4 ++-- main.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index be26d61..9b952df 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This is a port from [jBCrypt](https://github.com/jeremyh/jBCrypt) to TypeScript It has zero third-party dependencies. Running in sync requires no permissions. -Running in async functionality requires --allow-read, --allow-net and --unstable +Running in async functionality requires --allow-net and --unstable ## Import @@ -19,7 +19,7 @@ import * as bcrypt from "https://deno.land/x/bcrypt/mod.ts"; ### Async -The Async implementation requires WebWorkers which require --allow-read to import relative files and --allow-net to import Deno standard modules. Also, to [allow Crypto inside a WebWorker](https://github.com/denoland/deno/pull/5121), you'll need to use the --unstable flag too. +The Async implementation requires WebWorkers which require --allow-net to import Deno standard modules from inside the Worker. Also, to [allow Crypto inside a WebWorker](https://github.com/denoland/deno/pull/5121), you'll need to use the --unstable flag too. ```ts const hash = await bcrypt.hash("test"); diff --git a/main.ts b/main.ts index 61ddb46..c6ed60c 100644 --- a/main.ts +++ b/main.ts @@ -2,7 +2,7 @@ import * as bcrypt from "./bcrypt/bcrypt.ts"; /** * Generate a hash for the plaintext password - * Requires --allow-net, --allow-read and --unstable flags + * Requires --allow-net and --unstable flags * * @export * @param {string} plaintext The password to hash @@ -36,7 +36,7 @@ export async function hash( /** * Generates a salt using a number of log rounds - * Requires --allow-net, --allow-read and --unstable flags + * Requires --allow-net and --unstable flags * * @export * @param {(number | undefined)} [log_rounds=undefined] Number of log rounds to use. Recommended to leave this undefined. @@ -67,7 +67,7 @@ export async function genSalt( /** * Check if a plaintext password matches a hash - * Requires --allow-net, --allow-read and --unstable flags + * Requires --allow-net and --unstable flags * * @export * @param {string} plaintext The plaintext password to check