Skip to content

Commit

Permalink
fix(util/crypto): type fingerprint to string
Browse files Browse the repository at this point in the history
(cherry picked from commit 062c784)
  • Loading branch information
mmelko authored and tadayosi committed May 7, 2024
1 parent 7bdf3f3 commit 3b29e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hawtio/src/util/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getFingerprint } from '@thumbmarkjs/thumbmarkjs'

export async function generateKey(salt: ArrayBufferView): Promise<CryptoKey> {
const fingerprint = await getFingerprint()
const data = new TextEncoder().encode(fingerprint)
const data = new TextEncoder().encode(fingerprint as string)
const key = await window.crypto.subtle.importKey('raw', data, { name: 'PBKDF2' }, false, ['deriveKey'])
const algorithm = {
name: 'PBKDF2',
Expand Down

0 comments on commit 3b29e54

Please sign in to comment.