sync

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sync provides encryption and decryption for .env files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encoded []byte, password string) ([]byte, error)

Decrypt decrypts data encrypted with Encrypt.

func DecryptFile

func DecryptFile(inPath, outPath, password string) error

DecryptFile decrypts a file and writes the result to outPath.

func DeriveKey

func DeriveKey(password string, salt []byte) ([]byte, error)

DeriveKey derives an AES-256 key from a password using scrypt.

func Encrypt

func Encrypt(plaintext []byte, password string) ([]byte, error)

Encrypt encrypts data using AES-256-GCM with a password-derived key.

func EncryptFile

func EncryptFile(inPath, outPath, password string) error

EncryptFile encrypts a file and writes the result to outPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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