encrypters

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAesEncrypter

func NewAesEncrypter(secret string) (auth.Encrypter, error)

NewAesEncrypter returns a new instance of AesEncrypter.

Types

type AesEncrypter

type AesEncrypter struct {
	// contains filtered or unexported fields
}

AesEncrypter is an implementation of the Encrypter interface that uses AES encryption.

func (*AesEncrypter) Decrypt

func (e *AesEncrypter) Decrypt(encrypted string) (string, error)

func (*AesEncrypter) Encrypt

func (e *AesEncrypter) Encrypt(plaintext string) (string, error)

Jump to

Keyboard shortcuts

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