Dieses kleine Python-Programm soll deutlich machen, wie die RSA-Chiffre funktioniert. Das Programm ist in der Lage
- ein Schlüsselpaar zu generieren,
- Zahlen zu verschlüsseln und
- Zahlen zu entschlüsseln.
Hinweis: Man stelle sich vor, dass Text zuvor in eine Zahl konvertiert wurde. Das Konvertieren von Text in eine Zahle wird von dem Programm (noch) nicht unterstützt.
Das Programm wird mit dem Aufruf
python main.py
gestartet.
Dies ist ein Demo-Programm und sollte nicht zur tatsächlichen Verschlüsselung sensibler Daten verwendet werden. Der Autor haftet für keine entstandenen Schäden.