<feed xmlns='http://www.w3.org/2005/Atom'>
<title>noshitalk/pkg/tor/tor.go, branch claude/refactor-code-efficiency-01QJd8Nak4WFpgPz2D91dYQ2</title>
<subtitle>Zero-knowledge end-to-end encrypted chat - X25519 ECDH + AES-GCM-256
</subtitle>
<id>https://git.virebent.art/virebent/noshitalk/atom?h=claude%2Frefactor-code-efficiency-01QJd8Nak4WFpgPz2D91dYQ2</id>
<link rel='self' href='https://git.virebent.art/virebent/noshitalk/atom?h=claude%2Frefactor-code-efficiency-01QJd8Nak4WFpgPz2D91dYQ2'/>
<link rel='alternate' type='text/html' href='https://git.virebent.art/virebent/noshitalk/'/>
<updated>2025-11-23T10:07:55+00:00</updated>
<entry>
<title>Refactor: modular architecture with shared packages</title>
<updated>2025-11-23T10:07:55+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2025-11-23T10:07:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.virebent.art/virebent/noshitalk/commit/?id=69a75acea56bbff39fa1c81d4813ebcb4a617f06'/>
<id>urn:sha1:69a75acea56bbff39fa1c81d4813ebcb4a617f06</id>
<content type='text'>
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
</content>
</entry>
</feed>
