diafygi / diafygi/webcrypto-examples

importKey RSA-OAEP with SHA-1 not working on safari 11

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.7k
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hey , I try to use 'importkey' on safari 11 and also on outlook for mac and both I get error.
` window.crypto.subtle.importKey(
"jwk",
{
"kty": "RSA",
"e": difensoPublicKeyE,
"n": difensoPublicKeyN,
"alg": "RSA-OAEP",
"ext": true
},
{ /
name: "RSA-OAEP",
hash: { name: "SHA-1" },
},
true,
["encrypt"]
).then(function (publicKey) {`

Then I get this error:
**OpeartionTypeError: Member JsonWebKey.kty is required and must be an instance of DOMString**

Not matter what I try it's same error... maybe someone can help please?

Thx

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.