crypt

package
v0.0.0-...-d989180 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package crypt is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypt

type Crypt interface {
	NewHashSha1(str string) string
	NewHashSha256(str string) string
	PasswordEncrypt(password string) ([]byte, error)
	PasswordCompare(encryptedPassword, password []byte) error
	RandomBytes(size int) ([]byte, error)
}

func New

func New() Crypt

type MockCrypt

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

MockCrypt is a mock of Crypt interface.

func NewMockCrypt

func NewMockCrypt(ctrl *gomock.Controller) *MockCrypt

NewMockCrypt creates a new mock instance.

func (*MockCrypt) EXPECT

func (m *MockCrypt) EXPECT() *MockCryptMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCrypt) NewHashSha1

func (m *MockCrypt) NewHashSha1(str string) string

NewHashSha1 mocks base method.

func (*MockCrypt) NewHashSha256

func (m *MockCrypt) NewHashSha256(str string) string

NewHashSha256 mocks base method.

func (*MockCrypt) PasswordCompare

func (m *MockCrypt) PasswordCompare(encryptedPassword, password []byte) error

PasswordCompare mocks base method.

func (*MockCrypt) PasswordEncrypt

func (m *MockCrypt) PasswordEncrypt(password string) ([]byte, error)

PasswordEncrypt mocks base method.

func (*MockCrypt) RandomBytes

func (m *MockCrypt) RandomBytes(size int) ([]byte, error)

RandomBytes mocks base method.

type MockCryptMockRecorder

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

MockCryptMockRecorder is the mock recorder for MockCrypt.

func (*MockCryptMockRecorder) NewHashSha1

func (mr *MockCryptMockRecorder) NewHashSha1(str interface{}) *gomock.Call

NewHashSha1 indicates an expected call of NewHashSha1.

func (*MockCryptMockRecorder) NewHashSha256

func (mr *MockCryptMockRecorder) NewHashSha256(str interface{}) *gomock.Call

NewHashSha256 indicates an expected call of NewHashSha256.

func (*MockCryptMockRecorder) PasswordCompare

func (mr *MockCryptMockRecorder) PasswordCompare(encryptedPassword, password interface{}) *gomock.Call

PasswordCompare indicates an expected call of PasswordCompare.

func (*MockCryptMockRecorder) PasswordEncrypt

func (mr *MockCryptMockRecorder) PasswordEncrypt(password interface{}) *gomock.Call

PasswordEncrypt indicates an expected call of PasswordEncrypt.

func (*MockCryptMockRecorder) RandomBytes

func (mr *MockCryptMockRecorder) RandomBytes(size interface{}) *gomock.Call

RandomBytes indicates an expected call of RandomBytes.

Jump to

Keyboard shortcuts

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