Skip to content

Instantly share code, notes, and snippets.

View raullucero's full-sized avatar

Raul Lucero raullucero

View GitHub Profile
@herrjemand
herrjemand / verify.packed.webauthn.js
Last active April 4, 2024 15:09
WebAuthn Packed attestation verification sample in NodeJS
const crypto = require('crypto');
const base64url = require('base64url');
const cbor = require('cbor');
const jsrsasign = require('jsrsasign');
const elliptic = require('elliptic');
const NodeRSA = require('node-rsa');
let COSEKEYS = {
'kty' : 1,
'alg' : 3,