Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jan 4, 2024
1 parent 085ecec commit 1b2cbeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lucia/src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import type { PasswordHashingAlgorithm } from "oslo/password";
export type { PasswordHashingAlgorithm } from "oslo/password";

async function generateScryptKey(s: string, salt: string, blockSize = 16): Promise<ArrayBuffer> {
const keyUint8Array = await scrypt(new TextEncoder().encode(s), new TextEncoder().encode(salt), {
const encodedData = new TextEncoder().encode(s);
const encodedSalt = new TextEncoder().encode(salt);
const keyUint8Array = await scrypt(encodedData, encodedSalt, {
N: 16384,
r: blockSize,
p: 1,
Expand Down

0 comments on commit 1b2cbeb

Please sign in to comment.