summaryrefslogtreecommitdiffstats
path: root/pkg/tor
Commit message (Collapse)AuthorAgeFilesLines
* Fix test cases for correct v3 onion address formatClaude2025-11-231-17/+17
| | | | | | - Fix tor_test.go: use 56-char base32 strings for valid onion addresses - Fix crypto_test.go: use net.Pipe() for proper bidirectional auth test - Fix go.sum: remove corrupted first line
* Add tests, Makefile, update README, remove duplicatesClaude2025-11-231-0/+282
| | | | | | | | | | | | - Add comprehensive test suites for all shared packages: - pkg/crypto: padding, encryption, ECDH, auth tests - pkg/protocol: message serialization tests - pkg/identity: identity save/load tests - pkg/tor: onion address validation tests - Add Makefile with build automation targets - Update README with new modular architecture docs - Remove duplicate monolithic .go files from root (code now organized in cmd/ and pkg/ directories)
* Refactor: modular architecture with shared packagesClaude2025-11-231-0/+221
Major code reorganization to eliminate duplication and improve maintainability: - Created pkg/crypto: shared cryptographic functions (padding, AES-GCM, ECDH, HMAC auth) - Created pkg/protocol: unified message structures and JSON serialization - Created pkg/identity: persistent identity management (load/save/generate) - Created pkg/tor: Tor SOCKS5 proxy connection utilities - Refactored server to use shared packages (cmd/server) - Refactored CLI client with shared packages (cmd/cli-client) - Refactored GUI client with shared packages (cmd/gui-client) - Refactored web client with embedded HTML template (cmd/web-client) Security improvements: - Replaced math/rand with crypto/rand for randomDelay() - Added proper error handling for crypto operations Code reduction: eliminated ~500+ lines of duplicated code