chengkun
2025-09-15 35c7b841f41398ab270d9316e41e841ec6bfd9c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import EasySDKKernel;
 
type @kernel = EasySDKKernel
 
init(kernel: EasySDKKernel) {
  @kernel = kernel;
}
 
function decrypt(cipherText: string): string {
  return @kernel.aesDecrypt(cipherText, @kernel.getConfig('encryptKey'));
}
 
function encrypt(plainText: string): string {
  return @kernel.aesEncrypt(plainText, @kernel.getConfig('encryptKey'));
}