MCPcopy Create free account
hub / github.com/apache/cloudstack / _base64urlDecode

Method _base64urlDecode

systemvm/agent/noVNC/core/crypto/rsa.js:21–25  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

19 }
20
21 _base64urlDecode(data) {
22 data = data.replace(/-/g, "+").replace(/_/g, "/");
23 data = data.padEnd(Math.ceil(data.length / 4) * 4, "=");
24 return Base64.decode(data);
25 }
26
27 _padArray(arr, length) {
28 const res = new Uint8Array(length);

Callers 1

_generateKeyMethod · 0.95

Calls 2

replaceMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected