Documentation ¶
Index ¶
- func Decode(bytz []byte) ([]byte, error)
- func Decrypt(key, bytz []byte) ([]byte, error)
- func Encode(bytz []byte) []byte
- func Encrypt(key, bytz []byte) ([]byte, error)
- func GenerateRandomBase64(s int) (string, error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomHex(s int) (string, error)
- func Hashkey(key []byte) []byte
- type Cert
- type Cert_Config
- type Keypair
- type Keypair_Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBase64 ¶
func GenerateRandomBytes ¶
func GenerateRandomHex ¶
Types ¶
type Cert ¶
type Cert struct { // host string // ValidFrom string // ValidTo string // CA bool // KeySize int CertificatePem []byte PublicPem []byte PrivatePem []byte }
func GenerateCert ¶
func GenerateCert(certConfig Cert_Config) Cert
func (*Cert) Generate ¶
func (c *Cert) Generate(certConfig Cert_Config)
type Cert_Config ¶
type Cert_Config struct {
IP string
}
type Keypair ¶
func GenerateKeypair ¶
func GenerateKeypair(keypairConfig Keypair_Config) Keypair
type Keypair_Config ¶
type Keypair_Config struct { }
Click to show internal directories.
Click to hide internal directories.