MCPcopy
hub / github.com/027xiguapi/code-box / EncryptionInterface

Interface EncryptionInterface

utils/encryption.ts:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as CryptoJS from "crypto-js"
2
3export interface EncryptionInterface {
4 getEncryptedString(data: string): string
5 decryptSecretString(secret: string): string | null
6 decryptEncSecret(entry: any): any | null
7 getEncryptionStatus(): boolean
8 updateEncryptionPassword(password: string): void
9 setEncryptionKeyId(id: string): void
10 getEncryptionKeyId(): string
11}
12
13export class Encryption implements EncryptionInterface {
14 private password: string

Callers

nothing calls this directly

Implementers 1

Encryptionutils/encryption.ts

Calls

no outgoing calls

Tested by

no test coverage detected