Skip to content

Commit

Permalink
docs: version URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 authored Aug 10, 2022
1 parent 78e213a commit 3d2e43b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a wasm-based (using rust-crypto) implementation of scrypt key derivation
Import the `hash` and/or `verify` functions and use them:

```ts
import { hash, verify } from "https://deno.land/x/scrypt/mod.ts";
import { hash, verify } from "https://deno.land/x/scrypt@v4.1.0/mod.ts";

const hashResult = hash("password");
const verifyResult = verify("password", hashResult);
Expand All @@ -35,14 +35,14 @@ dpx scrypt verify <password> <hash>
Alternatively, you can use it directly from the CLI by using `deno run`:

```bash
deno run https://deno.land/x/scrypt/cli.ts hash <password>
deno run https://deno.land/x/scrypt/cli.ts verify <password> <hash>
deno run https://deno.land/x/scrypt@v4.1.0/cli.ts hash <password>
deno run https://deno.land/x/scrypt@v4.1.0/cli.ts verify <password> <hash>
```

You can also install it globally using the following:

```bash
deno install -n scrypt https://deno.land/x/scrypt/cli.ts
deno install -n scrypt https://deno.land/x/scrypt@v4.1.0/cli.ts
```

Then, the package is available to run:
Expand Down

0 comments on commit 3d2e43b

Please sign in to comment.