encryption

package
v1.17.27 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package encryption provides encryption utilities for Lux projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFile

func DecryptFile(encryptedPath string, password string) ([]byte, error)

DecryptFile decrypts an age-encrypted file.

func DecryptPrivateKeyWithPassword

func DecryptPrivateKeyWithPassword(encryptedData []byte, password string) ([]byte, error)

DecryptPrivateKeyWithPassword decrypts an age-encrypted private key using a password. This is extracted from the MPC package to provide a centralized implementation.

func EncryptDataWithPassword

func EncryptDataWithPassword(data []byte, password string) ([]byte, error)

EncryptDataWithPassword encrypts data using age encryption with a password.

func IsAgeEncrypted

func IsAgeEncrypted(data []byte) bool

IsAgeEncrypted checks if data appears to be age-encrypted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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