Documentation ¶
Index ¶
- func GeneratePassword(length int) (password string)
- func GenerateRSAKey(rsaBits int) (privateKey *rsa.PrivateKey)
- func GenerateRSAKeyDER(rsaBits int) (derBytes []byte)
- func GenerateRSAKeyEncryptedPEM(rsaBits int, password string) (privateKeyPEM *pem.Block)
- func GenerateRSAKeyPEM(rsaBits int) (privateKeyPEM *pem.Block)
- func MarshalRSAKeyDER(privateKey *rsa.PrivateKey) (derBytes []byte)
- func MarshalRSAKeyEncryptedPEM(privateKey *rsa.PrivateKey, password string) (privateKeyPEM *pem.Block)
- func MarshalRSAKeyPEM(privateKey *rsa.PrivateKey) (privateKeyPEM *pem.Block)
- type SSHKeypair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePassword ¶
GeneratePassword generate a password with given length
func GenerateRSAKey ¶
func GenerateRSAKey(rsaBits int) (privateKey *rsa.PrivateKey)
GenerateRSAKey generate rsa key
func GenerateRSAKeyDER ¶
GenerateRSAKeyDER generate rsa key
func GenerateRSAKeyEncryptedPEM ¶
GenerateRSAKeyEncryptedPEM generate rsa key
func GenerateRSAKeyPEM ¶
GenerateRSAKeyPEM generate rsa key
func MarshalRSAKeyDER ¶
func MarshalRSAKeyDER(privateKey *rsa.PrivateKey) (derBytes []byte)
MarshalRSAKeyDER marshal rsa key
func MarshalRSAKeyEncryptedPEM ¶
func MarshalRSAKeyEncryptedPEM(privateKey *rsa.PrivateKey, password string) (privateKeyPEM *pem.Block)
MarshalRSAKeyEncryptedPEM marshal rsa key
func MarshalRSAKeyPEM ¶
func MarshalRSAKeyPEM(privateKey *rsa.PrivateKey) (privateKeyPEM *pem.Block)
MarshalRSAKeyPEM marshal rsa key
Types ¶
type SSHKeypair ¶
SSHKeypair with values as keys and password as strings
func GenerateSSHKey ¶
func GenerateSSHKey(rsaBits int, rsaPasswordLength int) (sshKeypair SSHKeypair)
GenerateSSHKey generate ssh key
Click to show internal directories.
Click to hide internal directories.