serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibWeb: Support generation of SubtleCrypto enough to load Discord login's QR Code

Open ADKaster opened this issue 2 years ago • 0 comments

According to the latest web app information that I downloaded (https://discord.com/assets/81726.fd218f2db8ffabddf299.js), we need the following APIs on window.crypto.subtle:

  • [x] generateKey(algorithm: { name: "RSA-OAEP", modulusLength: 2048, hash: "SHA-256" }, keyUsages: [ "decrypt" ]) https://github.com/SerenityOS/serenity/pull/23532
  • [x] exportKey(format: "spki", publicKey)
  • [x] digest(algorithm: { name: "SHA-256" })
  • [ ] decrypt(algorithm: { name: "RSA-OAEP", hash: "SHA-256" }, privateKey)

ADKaster avatar Mar 06 '24 00:03 ADKaster