MCPcopy Create free account
hub / github.com/FuAdmin/fu-admin / Encryption

Interface Encryption

web/src/utils/cipher.ts:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// Define an interface for encryption
11// 定义一个加密器的接口
12export interface Encryption {
13 encrypt(plainText: string): string;
14 decrypt(cipherText: string): string;
15}
16// Define an interface for Hashing
17// 定义一个哈希算法的接口
18export interface Hashing {

Callers

nothing calls this directly

Implementers 3

AesEncryptionweb/src/utils/cipher.ts
Base64Encryptionweb/src/utils/cipher.ts
AesEncryptionweb/src/utils/cipherOld.ts

Calls

no outgoing calls

Tested by

no test coverage detected