lib

package
v0.0.0-...-779d817 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2str

func Bytes2str(b []byte) string

func CompareOcr

func CompareOcr(gap *image.Image, src *image.Image) (int, error)

func RefuseImage

func RefuseImage(byteImg []byte) (image.Image, error)

func Str2bytes

func Str2bytes(s string) []byte

func TestDrawLine

func TestDrawLine(img image.Image, x int) image.Image

Types

type Crypto

type Crypto struct{}

func (Crypto) AesEncrypt

func (p Crypto) AesEncrypt(origData, key []byte) string

AesEncrypt return base64 string

func (Crypto) Md5

func (p Crypto) Md5(str string) string

func (Crypto) RsaEncrypt

func (p Crypto) RsaEncrypt(plainText []byte, N string) string

RsaEncrypt return hex string

type Params

type Params struct{}

func (*Params) Aa

func (q *Params) Aa(encTracks string, c []int, s string) string

Aa Params: EncTrack(trackArrays), c, s

func (*Params) EncTrack

func (q *Params) EncTrack(trackArrays [][]int) string

func (*Params) Userresponse

func (q *Params) Userresponse(x int, challenge string) string

type Random

type Random struct{}

func (*Random) AesKey

func (r *Random) AesKey() []byte

func (*Random) MoveSlide

func (r *Random) MoveSlide(xPos int, offset int) ([][]int, int, int)

func (*Random) Range

func (r *Random) Range(a int, b int) int

Jump to

Keyboard shortcuts

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