Add YaEncoding, YaRSA, YaGzip, YaMiddleware#11
Conversation
YaBase64 and YaRSAYaBase64, YaRSA and YaGzip
YaBase64, YaRSA and YaGzipYaBase64, YaRSA, YaGzip, YaMiddleware
There was a problem hiding this comment.
Pull Request Overview
This PR implements four new utility packages (YaBase64, YaRSA, YaGzip, YaMiddleware) to provide cryptographic and data encoding functionality with a focus on RSA encryption workflows. The implementation includes deterministic RSA key generation, base64 encoding/decoding, gzip compression, and Gin middleware for encrypted request headers.
Key changes:
- Added RSA encryption/decryption with chunking support for arbitrary data lengths
- Implemented deterministic RSA key generation using HMAC-SHA256 based DRBG
- Created base64 and gzip utility packages with error handling
- Built Gin middleware for processing RSA-encrypted headers with compression
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| yarsa/yarsa.go | Core RSA encryption/decryption with OAEP chunking |
| yarsa/reader.go | Deterministic byte stream generator for key generation |
| yarsa/key.go | Deterministic RSA key generation and private key parsing |
| yabase64/yabase64.go | JSON serialization with base64 encoding utilities |
| yagzip/yagzip.go | Gzip compression/decompression helpers |
| yamiddleware/yamiddleware.go | Gin middleware for RSA-encrypted request headers |
| go.mod | Added Gin framework and updated dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
YaBase64, YaRSA, YaGzip, YaMiddlewareYaBase64, YaRSA, YaGzip, YaMiddleware
YaBase64, YaRSA, YaGzip, YaMiddlewareYaEncoding, YaRSA, YaGzip, YaMiddleware
No description provided.