MCPcopy Create free account
hub / github.com/027xiguapi/code-box / getEncryptedString

Method getEncryptedString

utils/encryption.ts:22–27  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

20 }
21
22 getEncryptedString(data: string): string {
23 if (!this.password) {
24 return data
25 }
26 return CryptoJS.AES.encrypt(data, this.password).toString()
27 }
28
29 decryptSecretString(secret: string): string | null {
30 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected