Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePassword ¶
ParsePassword 解析采用base64编码的字符串获取密码
func RandPassword ¶
func RandPassword() string
RandPassword 产生 256个byte随机组合的 密码,最后会使用base64编码为字符串存储在配置文件中 不能出现任何一个重复的byte位,必须又 0-255 组成,并且都需要包含
Types ¶
type LittleCipher ¶
type LittleCipher struct {
// contains filtered or unexported fields
}
LittleCipher one of Encryptor implement
func (*LittleCipher) Decode ¶
func (cipher *LittleCipher) Decode(bs []byte) []byte
Decode 解码加密后的数据到原数据
Click to show internal directories.
Click to hide internal directories.