Skip to content

etkecc/go-secgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secgen

Secrets generator, supported types:

  • Passwords
  • Random bytes
  • ED25519 SSH keypairs

Simple go environment variables reader, for env-based configs

// password
securePassword := secgen.Password(64)
// base64-encode random bytes (openssl rand -base64 replacement)
randomBytes := secgen.Base64Bytes(64)

// ssh key
publicSSHkey, privateSSHkey, err := secgen.Keypair()