Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MIXCHARS is the number of characters to use in the mix MIXCHARS = 32 // SALT_LENGTH is the length of the salt SALT_LENGTH = 20 //nolint: revive // ITERATION_MULTIPLIER is the number of iterations to use ITERATION_MULTIPLIER = 1000 //nolint: revive )
Variables ¶
View Source
var All = []Hash{ &Plain{}, &MySQL{}, &MysqlNative{}, &CachingSha2Password{}, &Shadow{}, }
All 注册所有的hash方法 service模块可以通过hash的ID获取具体的hash实例
Functions ¶
This section is empty.
Types ¶
type CachingSha2Password ¶
type CachingSha2Password struct { }
func (*CachingSha2Password) ID ¶
func (i *CachingSha2Password) ID() string
type MysqlNative ¶
type MysqlNative struct { }
func (*MysqlNative) ID ¶
func (i *MysqlNative) ID() string
Click to show internal directories.
Click to hide internal directories.