encryptor

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCryptPasswordEncoder

type BCryptPasswordEncoder struct {
}

func NewBCryptPasswordEncoder

func NewBCryptPasswordEncoder() *BCryptPasswordEncoder

func (*BCryptPasswordEncoder) Encode

func (thiz *BCryptPasswordEncoder) Encode(rawPassword string) string

func (*BCryptPasswordEncoder) Matches

func (thiz *BCryptPasswordEncoder) Matches(rawPassword, encodedPassword string) bool

type NoEncryptor

type NoEncryptor struct {
}

不加密

func NewNoEncryptor

func NewNoEncryptor() *NoEncryptor

func (*NoEncryptor) Decrypt

func (n *NoEncryptor) Decrypt(cipher string) string

func (*NoEncryptor) Encrypt

func (n *NoEncryptor) Encrypt(text string) string

Jump to

Keyboard shortcuts

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