STMF (Sovereign Form Encryption): - X25519 ECDH + ChaCha20-Poly1305 hybrid encryption - Go library (pkg/stmf/) with encrypt/decrypt and HTTP middleware - WASM module for client-side browser encryption - JavaScript wrapper with TypeScript types (js/borg-stmf/) - PHP library for server-side decryption (php/borg-stmf/) - Full cross-platform interoperability (Go <-> PHP) SMSG (Secure Message): - Password-based ChaCha20-Poly1305 message encryption - Support for attachments, metadata, and PKI reply keys - WASM bindings for browser-based decryption Demos: - index.html: Form encryption demo with modern dark UI - support-reply.html: Decrypt password-protected messages - examples/smsg-reply/: CLI tool for creating encrypted replies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
1,006 B
YAML
50 lines
1,006 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
clean:
|
|
cmds:
|
|
- rm -f borg
|
|
build:
|
|
cmds:
|
|
- task: clean
|
|
- go build -o borg main.go
|
|
sources:
|
|
- main.go
|
|
- ./pkg/**/*.go
|
|
generates:
|
|
- borg
|
|
run:
|
|
cmds:
|
|
- task: build
|
|
- chmod +x borg
|
|
- ./borg
|
|
deps:
|
|
- build
|
|
test:
|
|
cmds:
|
|
- go test -coverprofile=coverage.txt ./...
|
|
test-e2e:
|
|
cmds:
|
|
- task: build
|
|
- chmod +x borg
|
|
- ./borg --help
|
|
wasm:
|
|
desc: Build STMF WASM module for browser
|
|
cmds:
|
|
- mkdir -p dist
|
|
- GOOS=js GOARCH=wasm go build -o dist/stmf.wasm ./pkg/wasm/stmf/
|
|
- cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" dist/
|
|
sources:
|
|
- ./pkg/stmf/**/*.go
|
|
- ./pkg/wasm/stmf/*.go
|
|
generates:
|
|
- dist/stmf.wasm
|
|
- dist/wasm_exec.js
|
|
wasm-js:
|
|
desc: Build STMF WASM and JS wrapper
|
|
cmds:
|
|
- task: wasm
|
|
- cp dist/stmf.wasm js/borg-stmf/dist/
|
|
- cp dist/wasm_exec.js js/borg-stmf/dist/
|
|
deps:
|
|
- wasm
|