Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
127 views

The web crypto API defines two different KDF utilities, namely deriveBits and deriveKey. While the former allows you to specify the desired output length (RFC 5869 calls this parameter L), the latter ...
0 votes
1 answer
40 views

I'm trying to understand kdbxweb, the database powering keeweb, compatible to Keepass. I did setup a simple project using vite and vitest that creates, saves and loads a database. Works like a charm ...
2 votes
0 answers
47 views

The MDN docs on importKey don't seem to provide a way to remove or delete a key once it is no longer needed. Since the function name includes the term "import", which may suggest some degree ...
aryzing's user avatar
  • 6,001
0 votes
0 answers
95 views

I'm researching ways to validate that a password has been pwned or not. Part of the process is to get the SHA-1 hash of the password (I know - not secure - but this is just a first crude attempt at a ...
1 vote
0 answers
51 views

Why is it happening and how to fix it? To reproduce comment/uncomment generateKey call and watch the event handler (you might want to put into a module (which is how I use it) or execute is as part ...
1 vote
1 answer
350 views

I need to generate a deterministic set ECDSA keys using zero dependencies javascript, for which I produce a pkcs8 key out of raw bytes and then import it as ECDSA private key. Is this logically ...
user avatar
1 vote
0 answers
130 views

I'm trying to generate ECDSA keys using seed and salt as inputs. My aim is to get it working with the pure browser javascript (SubtleCrypto) without the use of any external libs, it's an important ...
0 votes
1 answer
150 views

I am using @peculiar/webcrypto 1.5.0.(node v18.18.2) To test my logic, I need crypto.subtle. Below is simple test code in my jest.setup.js. const { Crypto } = require('@peculiar/webcrypto'); global....
0 votes
0 answers
51 views

In the past, we needed to mitigate CSRF attacks, in ways described by this OWASP cheatsheet: Nonce that's stored in session. But this requires storing the nonce in the session data on the server. The ...
2 votes
0 answers
524 views

I have a private key that is just a simple 32 byte private key that was generated somewhere else entirely outside of javascript. I want to import this private key into javascript using the subtle ...
3 votes
1 answer
924 views

let randKey = window.crypto.getRandomValues(new Uint8Array(64)); let importedKey = await window.crypto.subtle.importKey("raw", randKey, { name: "ECDH", ...
0 votes
1 answer
197 views

I'm working on doing WebAuthN on the server, and I'm running this in Node: import nCrypto from "crypto"; const base64UrlToUintArray = (src) => { const raw = atob(src.replaceAll("-&...
1 vote
1 answer
317 views

This is a follow-up question to a previous one, trying to get a working decryption of NDEF URLs from an NXP NTAG424 tag according to this documentation from NXP (4.4.2.1). I've put together an initial ...
1 vote
1 answer
495 views

I'm trying to port working code decoding the values read from an NXP NTAG424 NFC tag in a web-based application. I have a working example that uses crypto in a node.js environment but when I try to ...
0 votes
1 answer
175 views

My code: /* Fetch the contents of the "message" textbox, and encode it in a form we can use for the sign operation. */ function getMessageEncoding() { const messageBox = 'hello world!'; ...

15 30 50 per page
1
2 3 4 5 6

AltStyle によって変換されたページ (->オリジナル) /