diff --git a/README.md b/README.md index e2aecca6..309ecfe3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------------------------------ -PROJET API CryptoPython +PROJET API CryptoPython ------------------------------------------------------------------------------------------------------ Quelles sont les notions qui vont être abordées au cours de cet atelier CryptoPython ? Cet atelier a pour objectif de vous apprendre à créer un système de cryptographie d'information grace à Python et sa bibliothèque Cryptography. Vous allez ensuite exploiter cette solution via la construction d'API sous le Framework Flask. Vous allez donc créer des API (des routes) mais également découvrir les Actions et les Secrets GitHUB pour au final mettre en service et exploiter une solution Web de Cryptographie. Large programme mais tout à fait accessible et ne nécessitant pas de base technique particulière. Juste de l'observation et de la rigueur dans votre travail. diff --git a/__init__.py b/__init__.py index 6d6bfd5c..ffcc48e1 100644 --- a/__init__.py +++ b/__init__.py @@ -9,7 +9,19 @@ @app.route('/') def hello_world(): - return render_template('hello.html') + return render_template('') + +@app.route('/de_6_faces.html') +def de6f(): + return render_template('De_6_Faces.html') + +@app.route('/bibliotheque_images.html') +def bbtimg(): + return render_template('bibliotheque_images.html') + +@app.route('/roulette_russe') +def rrusse(): + return render_template('rouletterusse.html') key = Fernet.generate_key() f = Fernet(key) diff --git a/static/images/geda.jpg b/static/images/geda.jpg new file mode 100644 index 00000000..f0c80ed7 Binary files /dev/null and b/static/images/geda.jpg differ diff --git a/static/images/jlr.jpg b/static/images/jlr.jpg new file mode 100644 index 00000000..b0461914 Binary files /dev/null and b/static/images/jlr.jpg differ diff --git a/static/images/tyler_mugshot.jpg b/static/images/tyler_mugshot.jpg new file mode 100644 index 00000000..4e302d04 Binary files /dev/null and b/static/images/tyler_mugshot.jpg differ diff --git a/templates/De_6_Faces.html b/templates/De_6_Faces.html new file mode 100644 index 00000000..72066a2b --- /dev/null +++ b/templates/De_6_Faces.html @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + diff --git a/templates/bibliotheque_images.html b/templates/bibliotheque_images.html new file mode 100644 index 00000000..fb7ce91a --- /dev/null +++ b/templates/bibliotheque_images.html @@ -0,0 +1,92 @@ + + + + + + Bibliothèque d'images + + + + + + +
+

Bibliothèque d'images

+
+

Choisissez des images à afficher

+
+ + +
+
+ +
+
+
+ + + Image de Geda +
+
+
+ +
+
+
+ + + Image de Jean-Luc Reichmann +
+
+
+ +
+
+
+ + + Image de Tyler +
+
+
+
+
+ + + + diff --git a/templates/chenille.html b/templates/chenille.html new file mode 100644 index 00000000..95a87b2c --- /dev/null +++ b/templates/chenille.html @@ -0,0 +1,56 @@ + +La chenille qui vous forme + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + La chenille qui vous forme + + + + diff --git a/templates/hello.html b/templates/hello.html index 5a332b7f..7feea36d 100644 --- a/templates/hello.html +++ b/templates/hello.html @@ -1,3 +1,17 @@ CryptoPython -

Bienvue dans votre atelier CryptoPython !

+ + + + + + + + + + + + + + + diff --git a/templates/jack.html b/templates/jack.html new file mode 100644 index 00000000..8f7f34de --- /dev/null +++ b/templates/jack.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 10 1 2 3 4 5 6 7 8 9 A K Q J JOKER JOKER diff --git a/templates/maison.html b/templates/maison.html new file mode 100644 index 00000000..7a60f33d --- /dev/null +++ b/templates/maison.html @@ -0,0 +1,56 @@ + +Maison + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/rouletterusse.html b/templates/rouletterusse.html new file mode 100644 index 00000000..17f746ff --- /dev/null +++ b/templates/rouletterusse.html @@ -0,0 +1,81 @@ + + + + + + + +

Roulette Russe

+ + + + + + + + + + + + + + + + +