MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getUUID

Method getUUID

xiaosatonglu.js:292–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290 }
291 }
292 getUUID() {
293 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
294 var r = Math.random() * 16 | 0,
295 v = c == 'x' ? r : (r & 0x3 | 0x8);
296 return v.toString(16);
297 });
298 }
299 SHA256_Encrypt(str) {
300 const crypto = require('crypto');
301 return crypto.createHash("sha256").update(str).digest('hex');

Callers 2

loginMethod · 0.95
do_readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected