Documentation ¶
Index ¶
- func CheckPassword(hashedPassWithSeed string, pass []byte) (ok bool)
- func JoinSeedAndHash(seed []byte, hash string) string
- func PasswordHash(pass []byte) (hashedPassWithSeed string)
- func PasswordHashFromSeed(seed, pass []byte) string
- type Auth
- type Bootstrap
- type Config
- type CryptDev
- type LvmVG
- type RaidConfig
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func JoinSeedAndHash ¶
func PasswordHash ¶
Example ¶
seed := []byte("myseed") hash := PasswordHashFromSeed(seed, []byte("mypass")) fmt.Println(JoinSeedAndHash(seed, hash))
Output: bXlzZWVk:HMSxrg1cYphaPuUYUbtbl/htep/tVYYIQAuvkNMVpw0
func PasswordHashFromSeed ¶
Types ¶
type Config ¶
type Config struct { AntiPhishingCode string `yaml:"anti_phishing_code"` Keymap string Modules string Auths []Auth Networks []struct { Name string Interfaces []struct { Var string N int Regexps []string } Script string } SSH struct { Listen string Keys struct { DSA string RSA string ECDSA string ED25519 string } } PreLVMCrypt []CryptDev `yaml:"pre_lvm_crypt"` LVM []LvmVG Crypt []CryptDev Bootstrap Bootstrap }
type LvmVG ¶
type LvmVG struct { VG string PVs struct { N int Regexps []string } Defaults struct { FS string Raid *RaidConfig } LVs []struct { Name string FS string Raid *RaidConfig Size string Extents string } }
type RaidConfig ¶
Click to show internal directories.
Click to hide internal directories.