How tristan-h11/kryptographie works
Kryptographie is an academic cryptography learning application: an Angular GUI presents RSA, Menezes–Vanstone, and mathematical demonstrations, while a Rust backend provides cryptographic and math operations. The main workflow is a user action in an algorithm panel, an HTTP request, backend endpoint handling, and a cryptographic operation; GUI-to-backend links are dashed because the supplied excerpts do not show the URL mapping or server-side dispatch. The README also documents ElGamal derivatives and elliptic-curve work, so those capabilities are retained despite limited implementation excerpts.
Main entry points: number_theory_service.rs Number theory services · app.component.ts Application shell · rsa.rs RSA endpoints · rsa-client-panel.component.ts RSA client actions
Components 29
Learning interface
- Application shell
GUI/src/app/app.component.ts - RSA workspace
GUI/src/app/encryption-components/rsa - Menezes–Vanstone workspace
GUI/src/app/encryption-components/menezes-vanstone - Math demonstrations
GUI/src/app/math-components - Curve display
GUI/src/app/display-curve - Client and message state
GUI/src/app/encryption-components/shared/ClientData.ts - RSA client actions
GUI/src/app/encryption-components/rsa/rsa-client-panel/rsa-client-panel.component.ts - MV client actions
GUI/src/app/encryption-components/menezes-vanstone/mv-client-panel/mv-client-panel.component.ts
Backend API
- API route setup
src/api/basic.rs - RSA endpoints
src/api/endpoints/rsa.rs - MV endpoints
src/api/endpoints/mv.rs - Math endpoints
src/api/endpoints/math_endpoints.rs - Serializable API models
src/api/serializable_models.rs
Cryptographic schemes
- RSA string encryption and signatures
src/encryption/string_schemes/rsa/rsa_with_string_scheme.rs - RSA core scheme
src/encryption/core/rsa/rsa_scheme.rs - Menezes–Vanstone scheme
src/encryption/core/menezes_vanstone/menezes_vanstone_scheme.rs - ElGamal variants
src/encryption/core/el_gamal - GGH integer scheme
src/encryption/core/ggh/ggh_integer.rs - Decimal Unicode conversion
src/encryption/string_schemes/decimal_unicode_schemes
Math foundations
- Number theory services
src/math_core/number_theory/number_theory_service.rs - Number theory with PRNG
src/math_core/number_theory_with_prng_service.rs - Pseudo-random generation
src/math_core/pseudo_random_number_generator.rs - Finite-field elliptic curves
src/math_core/ecc/secure_finite_field_elliptic_curve.rs - Elliptic-curve points
src/math_core/ecc/finite_field_elliptic_curve_point.rs - Baby-step giant-step
src/math_core/babystep_giantstep.rs
Shared services
- RSA request service
GUI/src/app/services/backend-api/rsa-backend-request.service.ts - MV request service
GUI/src/app/services/backend-api/mv-backend-request.service.ts - Dialogs and feedback
GUI/src/app/services/utility/dialogs.service.ts
Other components
- Learner
Connections 32
- Learner → Application shell: uses
README.md - Application shell → RSA workspace: opens
- Application shell → Menezes–Vanstone workspace: opens
- Application shell → Math demonstrations: opens
- Application shell → Curve display: opens
- RSA workspace → RSA client actions: hosts
- Menezes–Vanstone workspace → MV client actions: hosts
- RSA client actions → Client and message state: uses
GUI/src/app/encryption-components/rsa/rsa-client-panel/rsa-client-panel.component.ts - MV client actions → Client and message state: uses
GUI/src/app/encryption-components/menezes-vanstone/mv-client-panel/mv-client-panel.component.ts - RSA client actions → RSA request service: requests
GUI/src/app/encryption-components/rsa/rsa-client-panel/rsa-client-panel.component.ts - MV client actions → MV request service: requests
GUI/src/app/encryption-components/menezes-vanstone/mv-client-panel/mv-client-panel.component.ts - RSA client actions → Dialogs and feedback: reports status
GUI/src/app/encryption-components/rsa/rsa-client-panel/rsa-client-panel.component.ts - MV client actions → Dialogs and feedback: reports status
GUI/src/app/encryption-components/menezes-vanstone/mv-client-panel/mv-client-panel.component.ts - RSA request service → RSA endpoints: calls over HTTP
- MV request service → MV endpoints: calls over HTTP
- API route setup → RSA endpoints: registers
src/api/basic.rs - API route setup → MV endpoints: registers
src/api/basic.rs - API route setup → Math endpoints: registers
src/api/basic.rs - RSA endpoints → Serializable API models: uses models
src/api/endpoints/rsa.rs - RSA endpoints → RSA string encryption and signatures: invokes
src/api/endpoints/rsa.rs - RSA string encryption and signatures → RSA core scheme: uses
src/encryption/string_schemes/rsa/rsa_with_string_scheme.rs - MV endpoints → Menezes–Vanstone scheme: generates keys
src/api/endpoints/mv.rs - Menezes–Vanstone scheme → Finite-field elliptic curves: uses curve operations
src/encryption/core/menezes_vanstone/menezes_vanstone_scheme.rs - Menezes–Vanstone scheme → Elliptic-curve points: uses point operations
src/encryption/core/menezes_vanstone/menezes_vanstone_scheme.rs - RSA endpoints → Number theory services: uses
src/api/endpoints/rsa.rs - RSA string encryption and signatures → Number theory services: uses
src/encryption/string_schemes/rsa/rsa_with_string_scheme.rs - Number theory with PRNG → Pseudo-random generation: delegates
src/math_core/number_theory_with_prng_service.rs - Pseudo-random generation → Number theory services: tests primes
src/math_core/pseudo_random_number_generator.rs - Finite-field elliptic curves → Elliptic-curve points: operates on
src/math_core/ecc/secure_finite_field_elliptic_curve.rs - Finite-field elliptic curves → Number theory services: uses
src/math_core/ecc/secure_finite_field_elliptic_curve.rs - Elliptic-curve points → Number theory services: computes inverses
src/math_core/ecc/finite_field_elliptic_curve_point.rs - Math endpoints → Number theory services: uses