formacao
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ async function verifying(publicKey, alg, signature, data) {
|
||||
return await crypto.subtle.verify(algorithm, cryptoKey, signature, data);
|
||||
}
|
||||
function pemToBinary(pem) {
|
||||
return decodeBase64(pem.replace(/-+(BEGIN|END).*/g, "").replace(/\s/g, ""));
|
||||
return decodeBase64(pem.replace(/-+(BEGIN|END).*?-+/g, "").replace(/\s/g, ""));
|
||||
}
|
||||
async function importPrivateKey(key, alg) {
|
||||
if (!crypto.subtle || !crypto.subtle.importKey) {
|
||||
|
||||
Reference in New Issue
Block a user