Questions tagged [subtlecrypto]
63 questions
0
votes
0 answers
why do you have to define the algorithm in decrypt() if importKey() already has it?
To decrypt something with the Web Crypto API you have to first import the key thusly:
const result = crypto.subtle.importKey(
format,
keyData,
algorithm,
extractable,
usages
);
This returns a promise. If you append…

neubert
- 15,947
- 24
- 120
- 212
0
votes
1 answer
Decrypt AES encrypted image in browser using window.crypto.subtle.decrypt
Business use-case:
In my application, i allow users to upload images. Now before storing
it to file system, i want images to be aes-encrypted. For displaying
images in browser, i want to decrypt them on the fly in browser. So
basically they will be…

Asad Ullah
- 2,257
- 2
- 24
- 23