encrypter

package
v0.0.0-...-c97a75a Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESEncrypter

type AESEncrypter struct{}

func NewAESEncrypter

func NewAESEncrypter() *AESEncrypter

func (*AESEncrypter) Decrypt

func (aesc *AESEncrypter) Decrypt(key, encryptedMessage string) (string, error)

func (*AESEncrypter) Encrypt

func (aesc *AESEncrypter) Encrypt(key, message string) (string, error)

type BcryptEncrypter

type BcryptEncrypter struct{}

func NewBcryptEncrypter

func NewBcryptEncrypter() *BcryptEncrypter

func (*BcryptEncrypter) Compare

func (be *BcryptEncrypter) Compare(encryptedMessage string, message string) (bool, error)

func (*BcryptEncrypter) Encrypt

func (be *BcryptEncrypter) Encrypt(message string) (string, error)

Jump to

Keyboard shortcuts

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