{"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 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 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 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
<\/p>\nMaker level<\/h2>\n
Calculate Pi<\/h2>\n

Brute-force Enigma<\/h2>\n

Our own OctaPi<\/h2>\n

\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