MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / getUUID

Function getUUID

src/lib/util.js:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65export function getUUID() {
66 if (crypto.randomUUID) {
67 return crypto.randomUUID().replaceAll('-', '');
68 } else {
69 let result = '';
70 const buf = new Uint16Array(8);
71 crypto.getRandomValues(buf);
72 for (let i = 0; i < buf.length; i++) {
73 result += buf[i].toString(16);
74 }
75 return result;
76 }
77}
78
79export function encodeHTML(text) {
80 return String(text)

Callers 15

buildMailWithHeaderFunction · 0.90
getAuthCodeFunction · 0.90
getAuthTokenFunction · 0.90
RecipientInputFunction · 0.90
onDecryptedAttachmentFunction · 0.90
constructorMethod · 0.90
addToWatchListMethod · 0.90
constructorMethod · 0.90
onArmoredKeyMethod · 0.90
checkLicenseMethod · 0.90
openAuthorizeDialogMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected