{"id":32,"date":"2024-09-26T21:25:46","date_gmt":"2024-09-27T01:25:46","guid":{"rendered":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/?p=32"},"modified":"2024-10-07T11:45:40","modified_gmt":"2024-10-07T15:45:40","slug":"python-project-cipher","status":"publish","type":"post","link":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/2024\/09\/26\/python-project-cipher\/","title":{"rendered":"Python Project-Cipher"},"content":{"rendered":"\n<div class=\"wp-block-columns are-vertically-aligned-top is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"wp-block-preformatted\">This is a blog post about my first of many projects in Fusion, a encoder\/decoder for both Caesar and Vigenere algorithms.<\/pre>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/replit.com\/@aaronchen271\/Python-Project-Cypher\">To the Project<\/a><\/div>\n<\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><a href=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/__trashed\/\" data-type=\"page\" data-id=\"34\">If that link doesn't work, click here to view source code.<\/a><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">The Process<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">First Step was to flowchart the design to figure out the design process.<\/pre>\n\n\n\n<figure class=\"wp-block-image alignwide size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"558\" src=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-095459-1.png\" alt=\"\" class=\"wp-image-39\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-095459-1.png 757w, https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-095459-1-300x221.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"499\" src=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-181338.png\" alt=\"\" class=\"wp-image-44 size-full\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-181338.png 619w, https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-181338-300x242.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>From there, I used W3schools, a more experienced friend, as well as a combination of previous knowledge to create the individual functions (Caesar Cipher\/Decipher, Vigenere Cipher\/Decipher)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Code used to define function to encode using the Ceasar algorithm.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"549\" src=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-182211.png\" alt=\"\" class=\"wp-image-45 size-full\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-182211.png 587w, https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-09-26-182211-300x281.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Finally, I wrote the code to take user input and run the desired function as well as the brute force algorithm for the Caesar Decoder.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Brute force Caesar decoder<\/p>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\">Throughout my time creating this project I went through my own fair share of problems and bugs in my code. At first, I attempted to use the provided Artificial Intelligence to varying success-I found that it would not always provide applicable or relevant advice. Instead, I contacted a friend who is more experienced in python than I am and he walked me through what was wrong and how to fix the problems as well as advice on writing code(readability, efficiency, etc.)<\/pre>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center\"><div class=\"wp-block-media-text__content\">\n<p>Sample output text.<\/p>\n<\/div><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"588\" src=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-10-01-082819-1.png\" alt=\"\" class=\"wp-image-51 size-full\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-10-01-082819-1.png 484w, https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-content\/uploads\/sites\/8\/2024\/09\/Screenshot-2024-10-01-082819-1-247x300.png 247w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a blog post about my first of many projects in Fusion, a encoder\/decoder for both Caesar and Vigenere algorithms. If that link doesn&#8217;t work, click here to view source code. The Process First Step was to flowchart the design to figure out the design process. From there, I used W3schools, a more experienced [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":7,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/posts\/32\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/aaronc\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}