| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
- 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 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)
|
|
|
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
|