{"id":38550,"date":"2017-11-27T12:07:55","date_gmt":"2017-11-27T12:07:55","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=38550"},"modified":"2021-09-19T15:50:34","modified_gmt":"2021-09-19T14:50:34","slug":"pi-enigma-octapi","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/","title":{"rendered":"Decrypt messages and calculate Pi: new OctaPi projects"},"content":{"rendered":"

Back in July<\/a>, we collaborated with GCHQ<\/a> to bring you two fantastic free resources<\/a>: the first showed you how to build an OctaPi, a Raspberry Pi cluster computer. The second showed you how to use the cluster to learn about public key cryptography. Since then, we and GCHQ have been hard at work, and now we’re presenting two more exciting projects to make with your OctaPi!<\/p>\n

\"A<\/p>\n

Maker level<\/h2>\n

These new free resources are at the Maker level of the Raspberry Pi Foundation Digital Making Curriculum<\/a> \u2014 they are intended for learners with a fair amount of experience, introducing them to some intriguing new concepts.<\/p>\n

Whilst both resources make use of the OctaPi in their final steps, you can work through the majority of the projects on any computer running Python 3.<\/p>\n

Calculate Pi<\/h2>\n
\"A

3.14159…ummm…<\/p><\/div>\n

Calculating Pi<\/em><\/a> teaches you two ways of calculating the value of Pi with varying accuracy. Along the way, you\u2019ll also learn how computers store numbers with a fractional part, why your computer can limit how accurate your calculation of Pi is, and how to distribute the calculation across the OctaPi cluster.<\/p>\n

Brute-force Enigma<\/h2>\n
\"A

Decrypt the message before time runs out!<\/p><\/div>\n

Brute-force Enigma<\/em><\/a>\u00a0sends you back in time to take up the position of a WWII Enigma operator. Learn how to encrypt and decrypt messages using an Enigma machine simulated entirely in Python. Then switch roles and become a Bletchley Park code breaker \u2014 except this time, you\u2019ve got a cluster computer on your side! You will use the OctaPi to launch a brute-force crypt attack on an Enigma-encrypted message, and you’ll gain an appreciation of just how difficult this decryption task was without computers.<\/p>\n

Our own OctaPi<\/h2>\n

\"A
\nGCHQ has kindly sent us a fully assembled, very pretty OctaPi of our own to play with at Pi Towers \u2014 it even has eight snazzy
Unicorn HATs<\/a> which let you display light patterns and visualize simulations! Visitors of the Raspberry Jam<\/a> at Pi Towers can have a go at running their own programs on the OctaPi, while we’ll be using it to continue to curate more free resources for you.<\/p>\n

If you’d like to find out more about cluster computing with the Raspberry Pi, read tomorrow’s blog post<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"

Back in July, we collaborated with GCHQ to bring you two fantastic free resources: the first showed you how to build an OctaPi, a Raspberry Pi cluster computer. The second showed you how to use the cluster to learn about public key cryptography. Since then, we and GCHQ have been hard at work, and now…<\/p>\n","protected":false},"author":32603,"featured_media":38689,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3879,2116,2653],"tags":[2740],"home_page_category":[],"home_page_card_color":[],"class_list":["post-38550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-foundation","category-education","category-raspberry-pi-resources","tag-octapi"],"acf":[],"featured_image_src":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE.png","author_info":{"display_name":"Laura Sach","author_link":"https:\/\/www.raspberrypi.org\/blog\/author\/laurasach\/"},"yoast_head":"\nDecrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation<\/title>\n<meta name=\"description\" content=\"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Decrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation\" \/>\n<meta property=\"og:description\" content=\"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Foundation\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/raspberrypi\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-27T12:07:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-19T14:50:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE-500x348.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"348\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Laura Sach\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeboom\" \/>\n<meta name=\"twitter:site\" content=\"@Raspberry_Pi\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Laura Sach\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/\"},\"author\":{\"name\":\"Laura Sach\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/#\\\/schema\\\/person\\\/d61bf667e8ab2bff29427010804642f3\"},\"headline\":\"Decrypt messages and calculate Pi: new OctaPi projects\",\"datePublished\":\"2017-11-27T12:07:55+00:00\",\"dateModified\":\"2021-09-19T14:50:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/\"},\"wordCount\":395,\"commentCount\":11,\"image\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.raspberrypi.org\\\/app\\\/uploads\\\/2017\\\/11\\\/OctaPi-Calculating-Pi-TILE.png\",\"keywords\":[\"OctaPi\"],\"articleSection\":[\"Foundation\",\"Education\",\"Raspberry Pi Resources\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/\",\"url\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/\",\"name\":\"Decrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.raspberrypi.org\\\/app\\\/uploads\\\/2017\\\/11\\\/OctaPi-Calculating-Pi-TILE.png\",\"datePublished\":\"2017-11-27T12:07:55+00:00\",\"dateModified\":\"2021-09-19T14:50:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/#\\\/schema\\\/person\\\/d61bf667e8ab2bff29427010804642f3\"},\"description\":\"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.raspberrypi.org\\\/app\\\/uploads\\\/2017\\\/11\\\/OctaPi-Calculating-Pi-TILE.png\",\"contentUrl\":\"https:\\\/\\\/www.raspberrypi.org\\\/app\\\/uploads\\\/2017\\\/11\\\/OctaPi-Calculating-Pi-TILE.png\",\"width\":688,\"height\":479},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/pi-enigma-octapi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.raspberrypi.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decrypt messages and calculate Pi: new OctaPi projects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/#website\",\"url\":\"https:\\\/\\\/www.raspberrypi.org\\\/\",\"name\":\"Raspberry Pi Foundation\",\"description\":\"Teach, learn and make with Raspberry Pi\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.raspberrypi.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.raspberrypi.org\\\/#\\\/schema\\\/person\\\/d61bf667e8ab2bff29427010804642f3\",\"name\":\"Laura Sach\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g\",\"caption\":\"Laura Sach\"},\"description\":\"Laura has worked as an educator in various forms for 17 years. When she's not on the computer you will most likely find her baking cakes, removing the cat from the curtains or corralling her children.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/codeboom\"],\"url\":\"https:\\\/\\\/www.raspberrypi.org\\\/blog\\\/author\\\/laurasach\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Decrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation","description":"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/","og_locale":"en_GB","og_type":"article","og_title":"Decrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation","og_description":"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!","og_url":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/","og_site_name":"Raspberry Pi Foundation","article_publisher":"https:\/\/www.facebook.com\/raspberrypi","article_published_time":"2017-11-27T12:07:55+00:00","article_modified_time":"2021-09-19T14:50:34+00:00","og_image":[{"width":500,"height":348,"url":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE-500x348.png","type":"image\/png"}],"author":"Laura Sach","twitter_card":"summary_large_image","twitter_creator":"@codeboom","twitter_site":"@Raspberry_Pi","twitter_misc":{"Written by":"Laura Sach","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#article","isPartOf":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/"},"author":{"name":"Laura Sach","@id":"https:\/\/www.raspberrypi.org\/#\/schema\/person\/d61bf667e8ab2bff29427010804642f3"},"headline":"Decrypt messages and calculate Pi: new OctaPi projects","datePublished":"2017-11-27T12:07:55+00:00","dateModified":"2021-09-19T14:50:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/"},"wordCount":395,"commentCount":11,"image":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE.png","keywords":["OctaPi"],"articleSection":["Foundation","Education","Raspberry Pi Resources"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/","url":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/","name":"Decrypt messages and calculate Pi: new OctaPi projects - Raspberry Pi Foundation","isPartOf":{"@id":"https:\/\/www.raspberrypi.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#primaryimage"},"image":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE.png","datePublished":"2017-11-27T12:07:55+00:00","dateModified":"2021-09-19T14:50:34+00:00","author":{"@id":"https:\/\/www.raspberrypi.org\/#\/schema\/person\/d61bf667e8ab2bff29427010804642f3"},"description":"Calculate the value of Pi and decrypt Enigma messages with our latest free OctaPi resources...and have a look at what was delivered to Pi Towers this week!","breadcrumb":{"@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#primaryimage","url":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE.png","contentUrl":"https:\/\/www.raspberrypi.org\/app\/uploads\/2017\/11\/OctaPi-Calculating-Pi-TILE.png","width":688,"height":479},{"@type":"BreadcrumbList","@id":"https:\/\/www.raspberrypi.org\/blog\/pi-enigma-octapi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.raspberrypi.org\/"},{"@type":"ListItem","position":2,"name":"Decrypt messages and calculate Pi: new OctaPi projects"}]},{"@type":"WebSite","@id":"https:\/\/www.raspberrypi.org\/#website","url":"https:\/\/www.raspberrypi.org\/","name":"Raspberry Pi Foundation","description":"Teach, learn and make with Raspberry Pi","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.raspberrypi.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.raspberrypi.org\/#\/schema\/person\/d61bf667e8ab2bff29427010804642f3","name":"Laura Sach","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d2d799142307af060531ffa7411b3520b9955b7bc6b1cbee3108a1c32ed1d5e?s=96&d=mm&r=g","caption":"Laura Sach"},"description":"Laura has worked as an educator in various forms for 17 years. When she's not on the computer you will most likely find her baking cakes, removing the cat from the curtains or corralling her children.","sameAs":["https:\/\/x.com\/codeboom"],"url":"https:\/\/www.raspberrypi.org\/blog\/author\/laurasach\/"}]}},"_links":{"self":[{"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/posts\/38550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/users\/32603"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/comments?post=38550"}],"version-history":[{"count":17,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/posts\/38550\/revisions"}],"predecessor-version":[{"id":38790,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/posts\/38550\/revisions\/38790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/media\/38689"}],"wp:attachment":[{"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/media?parent=38550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/categories?post=38550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/tags?post=38550"},{"taxonomy":"home_page_category","embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/home_page_category?post=38550"},{"taxonomy":"home_page_card_color","embeddable":true,"href":"https:\/\/www.raspberrypi.org\/wp-json\/wp\/v2\/home_page_card_color?post=38550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}