Skip to content

Commit

Permalink
change param name
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jan 4, 2024
1 parent 1b2cbeb commit bb849e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lucia/src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { alphabet, generateRandomString } from "oslo/random";
import type { PasswordHashingAlgorithm } from "oslo/password";
export type { PasswordHashingAlgorithm } from "oslo/password";

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

0 comments on commit bb849e5

Please sign in to comment.