Skip to main content
Home
This package has been archived, and as such it is read-only.

latest

Please switch to @stdext/crypto as this package is archived

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
a year ago (0.1.2)

deno_argon2

JSR JSR Score

Uses argon2 and compiles to WASM

Example usage

import { hash, verify } from "jsr:@halvardm/argon2";
import { assertEquals } from "jsr:@std/assert";

const hash = await hash("mypassword");
const result = await verify("mypassword", hash);

assertEquals(true, result);

You will need to run Deno with --allow-read

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@halvardm/argon2

Import symbol

import * as argon_ from "@halvardm/argon2";
or

Import directly with a jsr specifier

import * as argon_ from "jsr:@halvardm/argon2";

Add Package

pnpm i jsr:@halvardm/argon2
or (using pnpm 10.8 or older)
pnpm dlx jsr add @halvardm/argon2

Import symbol

import * as argon_ from "@halvardm/argon2";

Add Package

yarn add jsr:@halvardm/argon2
or (using Yarn 4.8 or older)
yarn dlx jsr add @halvardm/argon2

Import symbol

import * as argon_ from "@halvardm/argon2";

Add Package

npx jsr add @halvardm/argon2

Import symbol

import * as argon_ from "@halvardm/argon2";

Add Package

bunx jsr add @halvardm/argon2

Import symbol

import * as argon_ from "@halvardm/argon2";