[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-683172-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-683172-en":130,"doc-similar-683172":154},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","granny-was-a-hacker-knitting-as-computer-code","Granny Was a Hacker - Knitting as Computer Code","","Granny Was a Hacker explains how knitting can mirror computer coding by encoding symbols into yarn patterns and stitch choices. It covers binary knitting using knit and purl to represent 1s and 0s, describing practical limits such as stitch-count capacity for short ASCII messages. The document also demonstrates more advanced encodings with cables, Braille-like sock textures, and color-based message systems including binary “Hello World,” Morse-code mittens, and alphabet substitutions via yarn colors.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/lifestyle/","Lifestyle",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/granny-was-a-hacker-knitting-as-computer-code/683172/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/granny-was-a-hacker-knitting-as-computer-code/683172.png","ImageObject",300,407,{"name":42,"@type":43},"Malam Tenang","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-20","2026-11-06",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How does binary knitting encode information?","Question",{"text":63,"@type":64},"Binary knitting maps one stitch to 1 and the other to 0, using knit and purl. The length of the message is constrained by the size of the knitted piece.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What does the Viral Knitting Project encode?",{"text":68,"@type":64},"The project encodes the source code of the Code Red computer virus as a knitting pattern. The resulting knitted item is described as handmade and giftable, but inherently dangerous.",{"name":70,"@type":61,"acceptedAnswer":71},"How can colours be used to encode messages in knitting?",{"text":72,"@type":64},"Colours can represent dots and dashes for Morse code, spell words in binary using stripes, and encode letters through substitution rules where each colour corresponds to an alphabet character.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},683172,1793996874,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,116,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":113,"show_sort_weight":114,"slug":115},8,"Research & Report",30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":124,"slug":125},10,"lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":124,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":26,"preview_urls":145},962093532863,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","FLICKR: @STÉFAN  \nGRANNY WAS A HACKER  \nKNITTING AS  \nCOMPUTER CODE  \nI’m guessing that pretty much everyone is this room understands the general concept of “code” -an algorithm that represents symbols from some source alphabet with encoded strings in some other target alphabet. But what you may not realise is that your Granny did pretty much the same thing with two sticks and some wool. I thought it might be fun to run you through some ways you can use knitting to encode data and secret messages.  \nBINARY KNITTING  \n• “Decoder Hat” by Zabet Stewart  \n• Ribbing used to encode binary message.  \n• One = knit; zero = purl  \n• Message length restricted by size of hat. 96 stitches = 12 ASCII characters in binary at 8 stitches each  \nThose of you who’ve actually tried knitting know that it only consists of two stitches-knit and purl. And as you might guess, that makes it pretty easy to encode binary data simply by mapping those stitches to ones and zeroes. In this case, one = knit and zero = purl. The ribbing on this hat encodes up to 12 ASCII characters of your choice. Sadly, the length of your message is dictated by the size of your head!  \nBINARY KNITTING  \n• “Binary Scarf” by heycarrieann  \n• Source code of [ravelry.com](ravelry.com)[ ](ravelry.com)(knitting website) converted into binary  \nA scarf gives you a lot more room to work with. This scarf consists of the source code of the [ravelry.com](ravelry.com) home page converted into binary. Again, ones are knits and zeroes are purls.  \nBINARY KNITTING  \n• “The Viral Knitting Project”by Kirsty Robertson and Roberto Buiani  \n• Code Red computer virus turned into a knitting pattern  \nOne of the most interesting uses of the technique I’ve seen is the Viral Knitting Project, where a team of activists knitted the source code to the code red computer virus into a scarf. You can actually download the pattern and knit it yourself. So it’s soft, handmade, giftable…and intrinsically dangerous. Pretty cool.  \nFLICKR: @DEVA BURGER  \nRAVEL RY:@ CYN  \nIf you want to get a little more sophisticated, you can actually represent binary code with cables. The hat on the left represents the numbers from 0-15 in binary notation, depending on where the crosses occur. The example on the right uses cables to more literally depict zeroes and ones across a scarf.  \nBINARY KNITTING  \n• “Braille Socks” by Jessica Landers  \n• Uses knit and purl stitches to mimic Braille writing  \n• Encodes a stanza from Dr. Seuss’s Oh, The Places You'll Go!  \nThis last form of binary knitting relies on the unique bumpy texture created by mixing knit and purl stitches. These socks are actually Braille. The pattern repeat is actually a stanza from Dr. Seuss’s “Oh the Places You’ll Go.”  \nCODED COLOURS  \nFLICKR: @ADAM KNITS  \nEnough about stitch patterns. Let’s move on to colour! There are thousands of colours of knitting wool which offer a lot more possibilities for encoding messages. The stripes on this jumper, for example, actually spell out “Hello World” in binary.  \nCODED  \nCOLOURS  \n• “Morse Code” by Kate Atherley  \n• Uses colour to represent dots and dashes  \n• Left mitten reads “My Left Mitten”, thumb reads“Thumb”, etc  \nThese mittens use colours to represent the dots and dashes in Morse code! The left mitten reads “My Left Mitten”; the right mitten reads “My Right Mitten”; and the thumb says “Thumb”. You know, in case you get confused.  \nFROM: KNITTY. COM  \nFROM: STRING GEEK ER Y. COM  \nFROM: WOOLLY THOUGHTS  \nSome more examples of using colour for encoding. The sample on the left is actually the word PEACE. Each letter is mapped to its corresponding number of the alphabet, then the digits are graphed and mirrored to be used as a knitting chart. The mitts at the top are much simpler and encode a birthdate by using each digit as the number of rows for a coloured stripe. And the afghan is actually a substitution cypher, where each colour stands for a separate letter of the alphabet. If you [go to ](go to woollythoughts.c","cbCaibilyfyzsiLZ","https://ap.wps.com/l/cbCaibilyfyzsiLZ","pdf",3939109,16,"English","# Binary Knitting\n## Decoder Hat\n## Binary Scarf\n## Viral Knitting Project\n## Cables for Binary\n# Braille Socks\n# Coded Colours\n## Binary “Hello World”\n## Morse Code Mittens\n## Alphabet and Substitution Ciphers","[{\"question\":\"How does binary knitting encode information?\",\"answer\":\"Binary knitting maps one stitch to 1 and the other to 0, using knit and purl. The length of the message is constrained by the size of the knitted piece.\"},{\"question\":\"What does the Viral Knitting Project encode?\",\"answer\":\"The project encodes the source code of the Code Red computer virus as a knitting pattern. The resulting knitted item is described as handmade and giftable, but inherently dangerous.\"},{\"question\":\"How can colours be used to encode messages in knitting?\",\"answer\":\"Colours can represent dots and dashes for Morse code, spell words in binary using stripes, and encode letters through substitution rules where each colour corresponds to an alphabet character.\"}]","Granny Was a Hacker - Knitting as Computer Code | PDF",25,[146,150],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/9558ed96cffb9df4c61a3331bab252db.webp",983,732,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/2df33c37d22497db380e6504e6c4e498.webp",982,731,{"list":155,"token":11},[156,162,168,174,180,187,193,200,206,213],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":33,"category_name":29,"create_tm":161},724697,"How to Knit for Beginners - Easy Knitting Instructions to Help You Learn to Knit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028747479/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=ZFvDkIZEECEfBwK4psTzrVPHsi4%3D","how-to-knit-for-beginners-easy-knitting-instructions-to-help-you-learn-to-knit",1795192936,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":102,"category_name":29,"create_tm":167},683214,"Yarn Overs in Creating Lace - Knit-YO-Knit / Purl-YO-Purl / Eyelet Patterns - Stitch Anatomy Spring 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000029286/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=nbcMb6rlRaMW%2Fh2Rwt%2F4jweoTKU%3D","yarn-overs-in-creating-lace-knit-yo-knit-purl-yo-purl-eyelet-patterns-stitch-anatomy-spring-2023",1793997284,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":33,"category_name":29,"create_tm":173},724694,"Let's Learn to Knit - Your Guide for the Project","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028485621/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=YQwzgq%2FOUj%2BfmUE%2BdbNpnQxSn8w%3D","lets-learn-to-knit-your-guide-for-the-project",1795192927,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":30,"category_name":29,"create_tm":179},724698,"THE 4-H KNITTING HANDBOOK - Teaching Your Love of Knitting to Kids - Ten Tips From the Pros","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028485769/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=AWSNgOWOJhz2TeCogDq4YmAQbD8%3D","the-4-h-knitting-handbook-teaching-your-love-of-knitting-to-kids-ten-tips-from-the-pros",1795192948,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":29,"create_tm":186},683187,"Charts Featured in-Loom KnittingGuide - Patterns - Read knitting charts and convert needle patterns","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999026309/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=eYZO973oYt%2BL2ywgxEJ2yOyBwug%3D","charts-featured-in-loom-knittingguide-patterns-read-knitting-charts-and-convert-needle-patterns",12,1793997087,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":33,"category_name":29,"create_tm":192},724693,"Beginning To Knit - Double Cast On Method - Lesson","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028747419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=VaBzAYUINfppU92RJ%2B5nQwd9eCI%3D","beginning-to-knit-double-cast-on-method-lesson",1795192923,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":29,"create_tm":199},116704,"Knit Dynamic: patterns and techniques for creative making - Alice Hoyle","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834261128/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=xh1zEn9GlwRh58RE1xntLyJjlNg%3D","knit-dynamic-patterns-and-techniques-for-creative-making-alice-hoyle",35,1785663062,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":112,"category_name":29,"create_tm":205},669130,"Knit Chart Symbols - Standardized Reference Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988089350/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=%2BHowhenm4gBUQQi%2BQ0rNvdz%2Bmc0%3D","knit-chart-symbols-standardized-reference-guide",1793530761,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":29,"create_tm":212},668872,"Knitting & Crocheting All-in-One For Dummies - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987758476/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=T7VLXzuvvHdAGYPzUBzTj%2FQF8ik%3D","knitting-crocheting-all-in-one-for-dummies-table-of-contents",11,1793519704,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":55,"category_name":29,"create_tm":218},669227,"Knitting Chart Symbols - A Guide to Abbreviations and Stitches","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987954709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176739&Signature=LeFRK%2BUtUPjvNnyN8mTjXtnwUqo%3D","knitting-chart-symbols-a-guide-to-abbreviations-and-stitches",1793535297]