Documentation ¶
Overview ¶
package encryption provides interface Encryptor for other packages i.e. "kms" which could implement their own "Encrypt" and "Decrypt". Also, it could be used in the consumer of this package for the returnning type.
```
type Encryptor interface { Encrypt(ctx context.Context, plainStr string) (encryptedStr string, err error) Decrypt(ctx context.Context, encryptedStr string) (decryptedStr string, err error) }
````
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.