encrypt

package
v1.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCert

func CreateCert(csrPath, caCertPath, caKeyPath string, expiryDays int) (string, error)

CreateCert - function to create signing certificate

func CreateSigningCert

func CreateSigningCert(privateKey, cacert, cakey, csrData, csrPemData string, expiryDays int) (string, error)

CreateSigningCert - function to generate Signing Certificate

func EncryptContract

func EncryptContract(password, section string) (string, error)

EncryptContract - function to encrypt contract

func EncryptFinalStr

func EncryptFinalStr(encryptedPassword, encryptedContract string) string

EncryptFinalStr - function to get final encrypted section

func EncryptPassword

func EncryptPassword(password, cert string) (string, error)

EncryptPassword - function to encrypt password

func EncryptString

func EncryptString(password, section string) (string, error)

EncryptString - function to encrypt string

func GenFinalSignedContract

func GenFinalSignedContract(workload, env, workloadEnvSig string) (string, error)

GenFinalSignedContract - function to generate the final contract

func GeneratePublicKey

func GeneratePublicKey(privateKey string) (string, error)

GeneratePublicKey - function to generate public key from private key

func OpensslCheck

func OpensslCheck() error

OpensslCheck - function to check if openssl exists

func RandomPasswordGenerator

func RandomPasswordGenerator() (string, error)

RandomPasswordGenerator - function to generate random password

func SignContract

func SignContract(encryptedWorkload, encryptedEnv, privateKey string) (string, error)

SignContract - function to sign encrypted contract

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL