Show HN: InterEnv – Hardware enclave secrets in pure Rust InterEnv, a pure-Rust tool that seals project secrets inside hardware security enclaves (Apple Secure Enclave, Windows TPM 2.0, Linux Secret Service) and decrypts them only in volatile process memory, has been released as free, open-source software (MIT) for the Interlayer Blockchain ecosystem. Version 1.0.1 is available on crates.io, npm, PyPI, Packagist, Go Modules, GitHub Releases, and GHCR, with the project claiming zero plaintext on disk and no cloud dependency, contrasting with tools like dotenvx and cloud secret managers. Eradicate Plaintext .env Files from Developer Disks Forever Ultra-fast, hardware-enclave secret isolation in pure Rust, built for Interlayer Blockchain and open for all. Built for macOS TouchID, Windows Hello / TPM 2.0, and Linux Secret Service. Secrets decrypt only in volatile process memory. Never touches disk. Never leaks in Git. InterEnv core engine, CLI, and multi-language client SDKs are officially published and immediately available across all major package ecosystems: | Ecosystem | Registry / Source | Install / Add Command | Direct Registry Links | |---|---|---|---| | Rust | crates.io | cargo add interenv • cargo install interenv | • https://crates.io/crates/interenv crates.io/crates/interenv https://crates.io/crates/interenv | | Node.js / TypeScript | npm | npm install interenv • npx interenv | • https://www.npmjs.com/package/interenv npmjs.com/package/interenv https://www.npmjs.com/package/interenv | | Python / AI Agents | PyPI | pip install interenv | • https://pypi.org/project/interenv/ pypi.org/project/interenv https://pypi.org/project/interenv/1.0.1/ | | PHP / Laravel / Symfony | Packagist | composer require bharathcoorg/interenv | • https://packagist.org/packages/bharathcoorg/interenv packagist.org/packages/bharathcoorg/interenv https://packagist.org/packages/bharathcoorg/interenv | | Go Microservices | Go Modules | go get github.com/Bharathcoorg/interenv/go/interenv@v1.0.1 | pkg.go.dev/github.com/Bharathcoorg/interenv/go https://pkg.go.dev/github.com/Bharathcoorg/interenv/go | | Standalone Binaries | GitHub Releases | Prebuilt binaries for Linux, macOS Apple Silicon & Intel , Windows | GitHub v1.0.1 Release Assets https://github.com/Bharathcoorg/interenv/releases/tag/v1.0.1 | | Container Image | GitHub Packages GHCR | docker pull ghcr.io/bharathcoorg/interenv:latest | GitHub Packages https://github.com/Bharathcoorg/interenv/pkgs/container/interenv | Every software engineer, Web3 validator, and AI agent builder uses environment variables to store mission-critical credentials: INTERLAYER VALIDATOR KEY , ETHEREUM PRIVATE KEY , OPENAI API KEY , AWS SECRET ACCESS KEY , database connection strings, and webhook signing secrets. - ❌ The Catastrophic Problem : Plaintext .env files get accidentally committed to public GitHub repositories daily. Malicious npm and pip packages scan developers' hard drives to exfiltrate plaintext secrets. In blockchain environments, a leaked .env means permanent loss of validator stake or treasury funds. - ❌ The Flaw in Other Tools : dotenvx encrypts secrets but stores the decryption key in another plaintext file .env.keys on disk Cloud secret managers 1Password, Doppler, Infisical are cloud-locked, slow, and require expensive monthly subscriptions. - 🛡️ The InterEnv Solution : Engineered originally to safeguard high-stakes validator keys and autonomous agent secrets for the Interlayer Blockchain ecosystem, InterEnv seals your project secrets inside your Host Hardware Security Enclave Apple Secure Enclave on macOS, TPM 2.0 / Windows Hello on Windows, Secret Service on Linux . Secrets are decrypted strictly in volatile process memory for the exact lifecycle of your command, and then erased with cryptographic zeroization zeroize . | Feature | Plaintext .env | dotenvx | 1Password / Doppler | InterEnv This Tool | |---|---|---|---|---| | Storage Security | 🔴 Zero Plaintext on disk | 🟡 Key file on disk .env.keys | 🟢 Cloud Vault | 🟢 Hardware Enclave TPM / TouchID | | Disk Plaintext | 🔴 Exposed | 🟡 Exposes decrypted files | 🟢 None | 🟢 ZERO Plaintext on Disk | | Cloud Dependency | 🟢 Offline | 🟢 Offline | 🔴 Required Vendor Lock-in | 🟢 100% Offline & Local-First | | Pricing | Free | Free | $19–$39/user/month | 🟢 100% Free & Open Source MIT | | Git Pre-Commit Hook | ❌ Manual | ❌ Manual | ❌ Complex setup | 🟢 Built-in 1-Click Guard | | Secure Shredding | ❌ None | ❌ None | ❌ None | 🟢 DoD 5220.22-M Multi-Pass Wipe | | Runtime Speed | Instant | Slow Node.js | Slow CLI Cloud round-trips | ⚡ < 1ms Pure Rust | cargo install interenv npm install -g interenv Or run instantly without installation: npx interenv --help git clone https://github.com/Bharathcoorg/interenv.git cd interenv cargo build --release --features tpm Note Real TPM 2.0 Support : Linux hardware TPM 2.0 support requires building with --features tpm . Without this flag, Linux falls back to software-based KEK protection. See INSTALL.md /Bharathcoorg/interenv/blob/main/INSTALL.md for full installation guides across Cargo, NPM, PyPI, Go, PHP, and Docker. Inside any project with an existing .env file: interenv lock What happens: 1. Generates an XChaCha20-Poly1305 master project key and binds it to your Hardware Enclave TouchID / TPM / Windows Hello . 2. Creates an encrypted, git-safe .interenv.lock file. 3. Cryptographically shreds and destroys the plaintext .env from physical storage using DoD 5220.22-M 3-pass overwriting Execute any tool, test runner, validator node, or web server: Interlayer Blockchain Node / Validator / Contract Deployment interenv run interlayer-node --validator Node / Next.js / Web3 interenv run npm run dev Rust interenv run cargo run Python / AI Agents interenv run python app.py Docker / Go / Any Binary interenv run docker compose up Secrets are injected directly into child process memory. Nothing ever touches disk. Need to add a new API key? interenv edit Opens your default $EDITOR in a secure temporary buffer, updates keys, re-encrypts into .interenv.lock , and securely shreds the temp buffer. interenv hook install Installs an automated guard in .git/hooks/pre-commit that detects and immediately aborts any accidental staging or commit of .env files or hardcoded API keys. InterEnv provides native, zero-dependency SDKs across all major programming ecosystems. Secrets are injected directly into process memory without creating or touching plaintext .env files on disk. npm install interenv js import { config } from "interenv"; config ; // Injects into process.env in-memory console.log process.env.OPENAI API KEY ; pip install interenv python import interenv, os interenv.load env Injects into os.environ in-memory print os.getenv "OPENAI API KEY" go get github.com/Bharathcoorg/interenv/go/interenv package main import "fmt" "os" "github.com/Bharathcoorg/interenv/go/interenv" func main { interenv.Load // Injects into os.Setenv in-memory fmt.Println os.Getenv "OPENAI API KEY" } composer require bharathcoorg/interenv php use InterEnv\InterEnv; InterEnv::load ; // Injects into $ ENV, $ SERVER, and putenv echo getenv 'OPENAI API KEY' ; | Command | Description | |---|---| | interenv lock file | Encrypt .env into hardware enclave and securely shred the plaintext | | interenv run