decryptor.go 258 B

1234567891011
  1. // Copyright 2021 Tencent Inc. All rights reserved.
  2. package cipher
  3. import "context"
  4. // Decryptor 字符串解密器
  5. type Decryptor interface {
  6. // Decrypt 对字符串解密
  7. Decrypt(ctx context.Context, ciphertext string) (plaintext string, err error)
  8. }