Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jul 1, 2024
1 parent 4513b87 commit 95ca7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Matches [RFC 2104](https://datatracker.ietf.org/doc/html/rfc2104).
```typescript
import { hkdf } from '@noble/hashes/hkdf';
import { sha256 } from '@noble/hashes/sha';
import { randomBytes } from '@noble/hashes/webcrypto';
import { randomBytes } from '@noble/hashes/utils';
const inputKey = randomBytes(32);
const salt = randomBytes(32);
const info = 'abc';
Expand Down Expand Up @@ -361,7 +361,7 @@ const result = argon2id('password', 'salt', { t: 2, m: 65536, p: 1 });
##### utils

```typescript
import { bytesToHex as toHex } from '@noble/hashes/utils';
import { bytesToHex as toHex, randomBytes } from '@noble/hashes/utils';
console.log(toHex(randomBytes(32)));
```

Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@
"./utils": {
"import": "./esm/utils.js",
"require": "./utils.js"
},
"./webcrypto": {
"import": "./esm/webcrypto.js",
"require": "./webcrypto.js"
}
},
"sideEffects": false,
Expand Down

0 comments on commit 95ca7fd

Please sign in to comment.