MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / compare

Function compare

scripts/auto_lockWebsite.js:110–112  ·  view source on GitHub ↗
(pass)

Source from the content-addressed store, hash-verified

108 password: {
109 storageKey: "auto_lock_website_manager_password",
110 async compare(pass) {
111 return pass && md5(pass) === (await Storage.get(this.storageKey));
112 },
113 async has() {
114 return (await Storage.get(this.storageKey)) != null;
115 },

Callers

nothing calls this directly

Calls 2

md5Function · 0.90
getMethod · 0.80

Tested by

no test coverage detected