captcha

package
v0.0.0-...-e3a6915 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

generated by go run gen.go; DO NOT EDIT

Index

Constants

View Source
const Chars = "ABCDEFGHIJKMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789"

Variables

View Source
var COMICSAN = []byte{}/* 245600 elements not displayed */

COMICSAN is the data for the "comic san" TrueType font.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
}

func (Captcha) GetRandStr

func (Captcha) GetRandStr(n int) (randStr string)

GetRandStr 生成验证码字符串(可存入redis或者放入其他缓存中)

func (Captcha) ImgText

func (Captcha) ImgText(width, height int, text string) (b []byte)

ImgText 生成图片byte数据可以生成base64数据或者生成img图片文件

Jump to

Keyboard shortcuts

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