PGP Automator es una API desarrollada en .NET que automatiza el proceso de encriptación de archivos utilizando una llave pública. Utiliza el paquete PgpCore, que a su vez es un wrapper del proyecto BouncyCastle para cifrado PGP.
- Andrés Evans
- GitHub: github.com/aevans32
- LinkedIn: linkedin.com/in/andresevans
- Encripta archivos usando PGP.
- Permite subir y gestionar llaves públicas.
- Los archivos encriptados pueden ser desencriptados con herramientas externas como Kleopatra.
- Soporte para probar la API mediante Swagger si se usa Visual Studio.
- .NET 6.0 o superior
- Paquete NuGet
PgpCore
La API requiere dos archivos:
- El archivo que se desea encriptar (de cualquier extensión).
- La llave pública (formato
.asc).
El resultado será un archivo .pgp encriptado.
-
Clonar el repositorio:
git clone https://github.com/yourusername/PGPAutomator.git cd PGPAutomator -
Restaurar los paquetes necesarios:
dotnet restore
-
Compilar y ejecutar el proyecto:
dotnet build dotnet run
- PgpCore (versión 6.5.1): facilita el uso de cifrado y descifrado PGP en proyectos .NET.
Instalación manual:
dotnet add package PgpCore-
Encriptar archivos:
Enviar una petición POST a/api/pgpencryption/encryptcon:- Un archivo
.txto cualquier tipo de archivo - Una llave pública
.asc
Se devolverá un archivo.pgp.
- Un archivo
-
Desencriptar archivos:
Usar una herramienta externa como Kleopatra junto con tu llave privada.
PGP Automator is a .NET-based API that automates the encryption of files using a public key. It uses the PgpCore NuGet package, which wraps the BouncyCastle cryptography library.
- Andrés Evans
- GitHub: github.com/aevans32
- LinkedIn: linkedin.com/in/andresevans
- Encrypt files using PGP.
- Upload and manage public keys.
- Decrypt .pgp files using tools like Kleopatra.
- Swagger support available when running in Visual Studio.
- .NET 6.0 (or later)
PgpCoreNuGet package
The API requires two files:
- The file to be encrypted (any extension).
- The public key file (
.ascformat).
The result will be an encrypted .pgp file.
-
Clone the repository:
git clone https://github.com/yourusername/PGPAutomator.git cd PGPAutomator -
Install NuGet packages:
dotnet restore
-
Build and run:
dotnet build dotnet run
- PgpCore (version 6.5.1): a simple PGP encryption/decryption wrapper for .NET.
Install manually:
dotnet add package PgpCore-
Encrypting files:
Send a POST request to/api/pgpencryption/encryptwith:- A
.txtor any file - A
.ascpublic key
The API returns a.pgpencrypted file.
- A
-
Decrypting files:
Use an external tool like Kleopatra with your private key.
📅 Autor / Author: Andrés Evans
🗓️ Fecha / Date: 10/10/2024