SAE44_2023/README.md

53 lines
985 B
Markdown
Raw Normal View History

2024-04-06 14:13:39 +02:00
# Cryptographie RSA
Programme de cryptographie RSA utilisant la bibliothéque [bign](https://sourceforge.net/projects/bignlibacbignum/) afin de générer des clés, chiffrer et déchiffrer des entiers en hexadécimal et des fichiers.
2024-04-07 22:10:51 +02:00
## Téléchargement
Vous pouvez télécharger les exécutables précompiliés ici : https://grond.iut-fbleau.fr/souidi/SAE44_2023/releases/latest
2024-04-06 14:13:39 +02:00
## Build
```bash
make build
```
Les exécutables se trouvent dans le dossier `bin`.
## Utilisation
### Génération de clé
```bash
./key_gen rsa.key rsa.key.pub
```
### Chiffrement d'un entier
```bash
./crypt_rsa -e rsa.key.pub entier.txt entier.txt.rsa
```
### Déchiffrement d'un entier
```bash
./crypt_rsa -d rsa.key entier.txt.rsa entier.txt
```
### Chiffrement d'un ficher
```bash
./crypt_rsa -e rsa.key.pub fichier.txt fichier.txt.rsa
```
### Déchiffrement d'un ficher
```bash
./crypt_rsa -d rsa.key fichier.txt.rsa fichier.txt
```
## Auteurs
- Hugo Dimitijevic
- Lyanis Souidi