utils

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIcon

func GenerateIcon(salt string) image.Image

GenerateIcon アイコン画像を生成します

func GenerateSalt

func GenerateSalt() []byte

GenerateSalt 64bytesソルトを生成します

func HashPassword

func HashPassword(pass string, salt []byte) []byte

HashPassword パスワードをハッシュ化します

func MultiWriter

func MultiWriter(writers ...io.Writer) io.Writer

MultiWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command. io.MultiWriterとの違いはwritersがio.ErrClosedPipeを返す場合は処理を続行するという点

func RandAlphabetAndNumberString

func RandAlphabetAndNumberString(n int) string

RandAlphabetAndNumberString 指定した文字数のランダム英数字文字列を生成します

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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