Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UserCertType mark as user certificate UserCertType string = "user" // HostCertType mark as host certificate HostCertType string = "host" )
View Source
const EnvPrefix string = "CERTONID"
EnvPrefix for environment variables
Variables ¶
View Source
var EnvStrReplacer = strings.NewReplacer(".", "_")
EnvStrReplacer for environment variables
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func SymmetricDecrypt ¶
SymmetricDecrypt decrypt value by CERTONID_SYMMETRIC_KEY
func SymmetricEncrypt ¶
SymmetricEncrypt encrypt value by CERTONID_SYMMETRIC_KEY
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.