webcrypto-examples icon indicating copy to clipboard operation
webcrypto-examples copied to clipboard

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

Open OriAmir opened this issue 8 years ago • 0 comments

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

OriAmir avatar Oct 04 '17 09:10 OriAmir