Documentation
¶
Index ¶
- Constants
- Variables
- func DecryptContent(content []byte) ([]byte, error)
- func EncryptContent(content []byte) ([]byte, error)
- func InitEncryptionFlags(cmd *cobra.Command)
- func IsEncrypted(content []byte) bool
- func IsMasked(content []byte) bool
- func MaskEnvContent(content []byte) ([]byte, error)
- func UnmaskEnvContent(content []byte) ([]byte, error)
Constants ¶
View Source
const ( EncryptionPrefix = "ENVI_ENCRYPTED:" MaskedPrefix = "ENVI_MASKED:" EncryptionKeyLength = 32 // 256-bit key )
Encryption constants
Variables ¶
View Source
var ( UseEncryption bool UseMaskedEncryption bool UseKeyFile bool EncryptionKeyFile string EncryptionPassword string UseTUI bool = true )
Encryption command flags
Functions ¶
func DecryptContent ¶
DecryptContent decrypts the given content using AES-256-GCM
func EncryptContent ¶
EncryptContent encrypts the given content using AES-256-GCM
func InitEncryptionFlags ¶
InitEncryptionFlags initializes encryption-related flags for commands
func IsEncrypted ¶
IsEncrypted checks if content is encrypted with full encryption
func MaskEnvContent ¶
MaskEnvContent masks the values in a .env file while keeping the keys visible
func UnmaskEnvContent ¶
UnmaskEnvContent unmasks the values in a masked .env file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.