SAE44_2023/README.md
2024-04-06 14:13:39 +02:00

49 lines
837 B
Markdown

# 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.
## 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