encrypt

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package encrypt provides full-package encryption for .adfir packages (plan §19). A sealed package directory is archived (tar) and encrypted to a single .adfir.enc file so logical paths (which can leak confidential project/repo names) never appear in the clear.

Crypto is standard library only (honoring the zero-third-party-deps policy): AES-256-GCM for the payload, PBKDF2-HMAC-SHA256 for passphrase key derivation. The public envelope header carries only non-secret parameters (salt, nonce, KDF iterations) — never a key or plaintext. This is not a novel construction; it composes reviewed standard primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(inFile, destDir, passphrase string) error

Decrypt reads an encrypted file and extracts the package into destDir.

func Encrypt

func Encrypt(pkgDir, outFile, passphrase string) error

Encrypt archives the package directory and writes an encrypted file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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