MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / encrypt

Function encrypt

scripts/mars-credentials.mjs:178–181  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

176 }
177
178 function encrypt(token) {
179 if (!canEncrypt) return null;
180 return safeStorage.encryptString(token).toString("base64");
181 }
182
183 function decrypt(connection) {
184 const cached = memoryTokens.get(connection.id);

Callers 1

storeTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected