var cryptoObj = window.crypto || window.msCrypto;
let encrypted = await cryptoObj.subtle.encrypt(
{
name: "RSA-OAEP",
},
key,
plaintext
);
return encrypted;
Работает везде, кроме IE11.
var cryptoObj = window.crypto || window.msCrypto;
let encrypted = await cryptoObj.subtle.encrypt(
{
name: "RSA-OAEP",
},
key,
plaintext
);
return encrypted;
Работает везде, кроме IE11.