Comments (2)
Same here. The error I get on Chrome is
HmacImportParams: hash: Missing or not an AlgorithmIdentifier
On Safari:
NotSupportedError (DOM Exception 9): The operation is not supported.
On Firefox the promise hangs.
from webcrypto-examples.
This works for me*, does it help? (or have i misunderstood the issue)
const pwdKey = await window.crypto.subtle.importKey(
'raw',
encoder.encode(password),
{ name: 'PBKDF2' },
false,
['deriveKey']
);
const newAuthKey = await window.crypto.subtle.deriveKey(
{
name: 'PBKDF2',
salt: encoder.encode(file.url),
iterations: 100,
hash: 'SHA-256'
},
pwdKey,
{
name: 'HMAC',
hash: 'SHA-256'
},
true,
['sign']
);
*Firefox ESR 52.4.0 and Firefox Developer Edition 57.0b10
from webcrypto-examples.
Related Issues (20)
- How to import base64 encoded key? HOT 1
- RSA-OAEP wrapKey/unwrapKey HOT 1
- Describe each encryption a litle bit HOT 1
- Deterministic generation of key pair from seed HOT 2
- How to recover public key with ECDSA?
- Source of Recommended/Discouraged algorithms HOT 3
- verbose mode
- Just thank you
- importKey RSA-OAEP with SHA-1 not working on safari 11
- HKDF-CTR replaced by HKDF
- how to use the ECDH or DH keys in transing?
- window.crypto.subtle.importKey not working for me when i hosted my web app on Server (IIS or NodeJs)
- ECDH deriveKey example should use HKDF
- Why are RSA APIs marked as "not recommended"?
- How to encrypt using RSA-OAEP for multiple recipient? HOT 1
- Unable to encrypt the bulk data in webcrypto
- Low rounds of PBKDF2
- False negative for PBKDF2+deriveKey
- Use key pair to encrypt / decrypt and sign / verify?
- Issue in decryption crypto.subtle encrypted text using RSACryptoServiceProvider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcrypto-examples.