Documentation
¶
Index ¶
- func AddKey(providerName string, hashString string, keyPairNameId string, ...) error
- func DelKey(providerName string, hashString string, keyPairNameId string) error
- func GenHash(sourceList []string) (string, error)
- func GenKeyPair() ([]byte, []byte, error)
- func GetKey(providerName string, hashString string, keyPairNameId string) (*irs.KeyValue, error)
- func ListKey(providerName string, hashString string) ([]*irs.KeyValue, error)
- func MakePublicKeyFromPrivateKey(pem string) (string, error)
- func ValidateWindowsPassword(pw string) error
- type LocalKeyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenKeyPair ¶
generate a KeyPair with 4KB length returns: privateKeyBytes, publicKeyBytes, error
func MakePublicKeyFromPrivateKey ¶
ParseKey reads the given RSA private key and create a public one for it.
func ValidateWindowsPassword ¶ added in v0.6.15
Types ¶
type LocalKeyInfo ¶ added in v0.7.6
type LocalKeyInfo struct { ProviderName string `gorm:"primaryKey"` HashString string `gorm:"primaryKey"` NameId string `gorm:"primaryKey"` PrivateKey string }
func (LocalKeyInfo) TableName ¶ added in v0.7.6
func (LocalKeyInfo) TableName() string
Click to show internal directories.
Click to hide internal directories.