How joaopsoliveira03/estg-ca works
Project type and purpose
• This is a Maven-based, single-module Java application (an open-source CLI tool) for “Applied Cryptography” on PDF documents.
• It provides commands (Sign, Verify, Encrypt, Decrypt, Bruteforce, TSA timestamping) by wrapping Apache PDFBox and BouncyCastle libraries.
File structure
• Top-level: pom.xml defines dependencies (BouncyCastle jars, PDFBox).
• src/main/java: nine entry‐point classes—one per feature:
• SymmetricEncryption.java
• AssymetricEncryption.java
• PrivateKeyAccess.java
• PDFSigner.java (calls Sign.java)
• Verify.java
• PDFDecrypter.java
• UnencryptBruteforce.java
• OSCP_TSA.java
• src/main/resources: bundled library JARs (bcprov, bcpkix, bcutil, pdfbox-app).
README
• Title: “Java Applied Cryptography.” No further architecture notes, so we infer design from code.
Capturing essential elements
• Don’t over-complicate: group closely related classes into modules.
• Dependency edge is shown (e.g., PDFSigner → Sign.java → BouncyCastle → File).
• Maven build context if desired (pom.xml at top, showing dependency resolution).
• Configurations or resource files (the three BC JARs and the PDFBox JAR) under “External Libraries.”