Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptInterface ¶ added in v1.1.2
DecryptInterface 密码解密接口
type DecryptStringInterface ¶ added in v1.1.2
DecryptStringInterface 字符串解密接口
type EncryptInterface ¶ added in v1.1.2
EncryptInterface 密码加密接口
type EncryptStringInterface ¶ added in v1.1.2
EncryptStringInterface 字符串加密接口
type Password ¶ added in v1.1.2
type Password struct {
Aes *aes.Aes // AES加密核心对象
Rsa *rsa.Rsa // RSA加密核心对象
Hash *hash.Hash // HASH加密核心对象
Ecc *ecc.Ecc // ECC加密核心对象
// contains filtered or unexported fields
}
Password 密码加密核心对象
type PasswordConfig ¶ added in v1.1.2
type PasswordConfig struct {
Debug bool // 是否为debug模式
LogFilePath string // 日志路径
Aes aes.AesConfig `yaml:"aes" json:"aes"` // AES加密核心配置
Rsa rsa.RsaConfig `yaml:"rsa" json:"rsa"` // RSA加密核心配置
Hash hash.HashConfig `yaml:"hash" json:"hash"` // HASH加密核心配置
}
PasswordConfig 密码配置对象
type PasswordInterface ¶ added in v1.1.2
type PasswordInterface interface {
EncryptInterface
DecryptInterface
}
PasswordInterface 字节数据密码接口
type PasswordStringInterface ¶ added in v1.1.2
type PasswordStringInterface interface {
EncryptStringInterface
DecryptStringInterface
}
PasswordStringInterface 字符串数据密码接口
Directories
¶
| Path | Synopsis |
|---|---|
|
algorithm
|
|
|
examples
|
|
|
z01_hash
command
|
|
|
z02_aes
command
|
|
|
z03_rsa
command
|
|
|
z04_ecc
command
|
|
|
libs
|
|
|
blake256
Package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3 candidate).
|
Package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3 candidate). |
|
plugins
|
|
|
pbkdf2
Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0.
|
Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0. |
Click to show internal directories.
Click to hide internal directories.