encryption

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 1 Imported by: 0

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

type Encryptor

type Encryptor interface {
	Encrypt(ctx context.Context, plainStr string) (encryptedStr string, err error)
	Decrypt(ctx context.Context, encryptedStr string) (decryptedStr string, err error)
}

Directories

Path Synopsis
package kms provides the ability to encrypt/decrypt data based on AWS KMS
package kms provides the ability to encrypt/decrypt data based on AWS KMS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL