I recently rewatched tmnt 2012 and thought... wow, there's loads of fully rendered and designed shops in the background. Has anyone ever listed them all for reference?
I didn't even check the fandom wikia so maybe someone has. But hey ho. I've done it now.
So here's all the shops and comics shown in the TMNT 2012 series, for your reference fellow writers and other insane people.
.
Comic books seen throughout the series:
'From the Sewer' (S1 E1, 08:09)
'Martial Pain' (S1 E4, 09:00)
'Famous Creatures of […] Town' (S1 E7, 22:49) **couldn't make out one of the words, sorry!
'Corps Cadares: The Dead Will Save the Earth' (S1 E11, 04:08)
AMAS: Allied Martial Arts Supply (S4 E15, 13:24) -- Used to hold Shredder/Foot Clan's weapons.
Cowabunga Skates (S4 E17, 05:20)
Run Jump Kick (S4 E17, 05:20)
Dell Abate Ristorante (S4 E18, 06:25) -- Don Vizioso's restaurant.
Felipe's (S4 E18, 16:27)
Hicnight Hotel (S4 E18, 17:16) --Don Vizioso's base.
Mini Mart (S5 E3, 16:19)
Friendly Jack's Loans (S5 E3, 17:43)
Wan Dingo's House of Curiosities and Oddities (S5 E5, 13:28)
Shanghai Sternn's Stir Fry (S5 E10, 12:04)
.
Notes:
The episode timestamps might not be totally accurate since I was watching this on a... ahem... legal website.
The timestamps are from when you could clearly and obviously see the shop signs. Like, Ziga's is visible from like episode one but couldn't be clearly read.
Some of the comics were just in shop windows and not really associated with a character so be careful. That is not a list of every comic the turtles have read. Like the Timely Times has only been in the background, not read by a particular turtle.
There were LOADS of shops where the shop name was in Chinese (or Japanese, I don't know) and so I couldn't list. Most of the shops by the Chinatown arch weren't in english. That's why even Murakami's shop isn't listed here. Because the actual shop name wasn't in english.
Thanks for reading through this. Hopefully this was useful for... anyone out there.
Mean song rating: 6.542
Mean episode rating: 6.536
Mean season rating (by songs): 6.527
Mean season rating (by episodes): 6.525
Range of mean song ratings: 2.23-9.36
Range of mean episode ratings: 4.49-8.26
Range of mean season ratings (by songs): 2.23-9.36
Range of mean season ratings (by episodes): 4.49-8.26
Mean number of songs per episode: 5.8
Mean number of songs per season: 117
Range of number of songs per episode: 2-11
Range of number of songs per season: 71-137
Season Results
The mean and standard deviation for each season can be calculated by using the episode ratings for that season, or by using the song ratings for that season.
[ID: Two horizontal bar charts titled Mean Season Rating (by episode) and Mean Season Rating (by song), illustrating the mean rating of each season calculated according to episode rating and song rating, respectively. According to the episode ratings, S3 has a mean rating of 6.65, S2 has a mean rating of 6.63, S5 has a mean rating of 6.59, S4 has a mean rating of 6.47, S1 has a mean rating of 6.44, S6 has a mean rating of 6.37. According to the song ratings, S3 has a mean rating of 6.69, S5 has a mean rating of 6.61, S2 has a mean rating of 6.58, S4 has a mean rating of 6.5, S6 has a mean rating of 6.39, S1 has a mean rating of 6.39.]
[ID: Two horizontal bar charts titled Season Standard Deviation (by episode) and Season Standard Deviation (by song), illustrating the standard deviation of each season calculated according to episode rating and song rating, respectively. According to the episode ratings, S1 has a standard deviation of 0.87, S6 has a standard deviation of 0.69, S5 has a standard deviation of 0.68, S2 has a standard deviation of 0.67, S3 has a standard deviation of 0.61, S4 has a standard deviation of 0.56. According to the song ratings, S2 has a standard deviation of 1.32, S1 has a standard deviation of 1.3, S3 has a standard deviation of 1.16, S5 has a standard deviation of 1.14, S6 has a standard deviation of 1.07, S4 has a standard deviation of 1.01.]
Episode Results
[ID: Two horizontal bar charts titled Top Six Episodes and Bottom Six Episodes, illustrating the mean rating of the top six highest and lowest rated episodes, respectively. For the top six episodes: S2E18 - Born This Way has a mean rating of 8.26, S5E03 - The Quarterback has a mean rating of 8.16, S1E06 - Vitamin D has a mean rating of 8.13, S1E13 - Sectionals has a mean rating of 7.99, S4E04 - The Break-Up has a mean rating of 7.75, S2E06 - Never Been Kissed has a mean rating of 7.7. For the bottom six episodes: S1E08 - Mash-Up has a mean rating of 4.49, S3E12 - The Spanish Teacher has a mean rating of 4.97, S5E08 - Previously Unaired Christmas has a mean rating of 5.06, S6E04 - The Hurt Locker, Part One has a mean rating of 5.11, S1E10 - Ballad has a mean rating of 5.31, S4E19 - Sweet Dreams has a mean rating of 5.42.]
[ID: Two horizontal bar charts titled Top Six Least Controversial Episodes (episodes with small SDs) and Top Six Most Controversial Episodes (episodes with large SDs), illustrating the six least and most controversial episodes according to standard deviation, respectively. For the six least controversial episodes: S1E04 - Preggers has an sd of 0.13, S1E06 - Vitamin D has an sd of 0.21, S1E09 - Wheels has an sd of 0.28, S1E19 - Dream On has an sd of 0.33, S6E08 - A Wedding has an sd of 0.34, S4E19 - Sweet Dreams has an sd of 0.4. For the six most controversial episodes: S1E03 - Acafellas has an sd of 2.53, S2E08 - Furt has an sd of 2.03, S5E05 - The End of Twerk has an sd of 2.01, S3E06 - Mash Off has an sd of 1.83, S5E07 - Puppet Master has an sd of 1.77, S2E09 - Special Education has an sd of 1.73.]
Song Results
[ID: Two horizontal bar charts titled Top Six Songs and Bottom Six Songs, illustrating the mean rating of the top six highest and lowest rated songs, respectively. For the top six songs: S3E06 - Rumour Has It/Someone Like You has a mean rating of 9.36, S2E09 - Valerie has a mean rating of 9.21, S3E11 - Smooth Criminal has a mean rating of 9.17, S3E14 - Cough Syrup has a mean rating of 9.17, S2E04 - River Deep, Mountain High has a mean rating of 9.11, S1E18 - Rose's Turn has a mean rating of 9.06. For the bottom six songs: S1E08 - Thong Song has a mean rating of 2.23, S5E05 - Blurred Lines has a mean rating of 2.66, S1E03 - I Wanna Sex You Up has a mean rating of 2.92, S3E12 - A Little Less Conversation has a mean rating of 2.94, S2E16 - Jesus Is My Friend has a mean rating of 3.03, S5E07 - The Fox has a mean rating of 3.23.]
[ID: Two horizontal bar charts titled Top Six Least Controversial Songs (songs with small SDs) and Top Six Most Controversial Songs (songs with large SDs), illustrating the six least and most controversial songs according to standard deviation, respectively. For the six least controversial songs: S3E06 - Rumour Has It/Someone Like You has an sd of 1.02, S2E09 - Valerie has an sd of 1.03, S2E04 - River Deep, Mountain High has an sd of 1.15, S2E18 - Born This Way has an sd of 1.31, S1E20 - Bad Romance has an sd of 1.36, S3E11 - Smooth Criminal has aan sd of 1.37. For the six most controversial songs: S2E14 - My Headband has an sd of 2.83, S2E16 - Only Child has an sd of 2.81, S3E07 - Girls Just Wanna Have Fun has an sd of 2.73, S5E08 - The Chipmunk Song (Christmas Don't Be Late) has an sd of 2.73, S2E21 - My Man has an sd of 2.69, S5E07 - The Fox has an sd of 2.67.]
[More detailed song results under the cut]
About the Project | Results Masterpost
Full Episode Ranking
Season/Episode - Episode Title: mean (sd) [range] number of songs
1. S2E18 - Born This Way: 8.26 (0.88) [6.75-8.89] n=5
2. S5E03 - The Quarterback: 8.16 (0.81) [6.95-8.89] n=6
I finished rewatching TCW (for about the 9th time lol) recently and decided I'd try to rank every "storyline" as I went. I mostly did this by arcs, but there were a few arcs that I decided to split up because the episodes either seemed minimally related, or differed vastly in enjoyment level for me. This is based on nothing besides my own personal opinion. I'm not doing commentary because I'm far too lazy for that, but I did split this up into tiers. (And please excuse some of these arc names; this is just how I refer to them in my head.) Enjoy!
Not for me, sorry
60. Water Wars (S4 E1-3)
Ehhhhh.....
59. "Nomad Droids" (S4 E6)
58. "Blue Shadow Virus" (S1 E17)
57. Droid Spy (S1 E6-7)
A Good Time
56. "Senate Spy" (S2 E4)
55. "Cloak of Darkness" (S1 E9)
54. "Sphere of Influence" (S3 E4)
53. "Grievous Intrigue" (S2 E9)
52. "Hostage Crisis" (S1 E22)
51. "Heroes on both Sides" (S3 E10)
50. "A Friend in Need" (S4 E14)
49. "Cat and Mouse" (S2 E16)
48. "Evil Plans" (S3 E8)
47. "Trespass" (S1 E15)
46. "Mercy Mission" (S4 E5)
45. Aayla and the Lemurs vs Kim Jong Un (S1 E13-14)
44. Malevolence (S1 E2-4)
43. "Lair of Grievous" (S1 E10)
42. "Shadow Warrior" (S4 E4)
41. Banking Clan (S6 E5-7)
40. Toydaria (S3 E3 + S1 E1)
39. "Bombad Jedi" (S1 E8)
38. Satine (S2 E12-14)
37. The Zillo Beast (S2 E18-19)
The Really Good Stuff
36. "Assassin" (S3 E7)
35. Zygerria (S4 E11-13)
34. Korkie and Co (S3 E5-6)
33. Senate Murders (S3 E11 + S2 E15)
32. Cad Bane Steals Children (S2 E1-3)
31. "The Hidden Enemy" (S1 E16)
30. The Citadel (S3 E18-20)
29. Colonel Meebur and His Droid Friends (S5 E10-13)
The number in parentheses is year of release, asterisks denote a re-watch, and titles in bold are my favourite watches of the year.
01 The Death of Stalin (17) does a neat trick of building goodwill for Steve Buscemi’s Krushchev, then brutally pays that off in the last few minutes.
02 Sorry to Bother You (18)
03 Support the Girls (18)
04 Paddington (14)*
05 Rogue One: A Star Wars Story (16)
06 Eighth Grade (18) probably the most terrifying movie I watched all year, if you didn’t watch it through your fingers, who even are you?
07 Morvern Callar (02) much less bleak than the book, but then, nearly anything would be
08 The Favourite (18) revolting and beautiful.
09 Columbus (17) a really lovely movie about architecture and parent-child relationships.
10 Bring it On (00)*
11 The Land of Steady Habits (18) feels wackier than your average Holofcener, but still a good watch.
12 Spotlight (15) i was really bowled over by this, and wasn’t expecting to be. Workmanlike filmmaking, but an extraordinary story, well-told.
13 The Killing of a Sacred Deer (17) Barry Keoghan is a blank, but somehow compelling screen presence. This one has an ending that made me bark with laughter.
14 Legends of the Fall (94)
15 Moneyball (11)* if you don’t feel like watching anything in particular, you can always watch Moneyball
16 If Beale St Could Talk (18) very beautiful, but I failed to connect with it on any other level.
17 For Keeps (88)
18 Abducted in Plain Sight (17)
19 Oscar Shorts (Animated) (18) the offerings were very sappy this year, but the winner was decent! Lots of Toronto content (weird).
20 Oscar Shorts (Live Action) (18) *unquestionably* the worst one of these won ¯\_(ツ)_/¯
21 Velvet Buzzsaw (19)
22 Vice (18) ugh
23 Friends with Money (06)
24 Can You Ever Forgive Me (18)
25 Bohemian Rhapsody (18) haha what. was. that.
26 Mars Attacks (96)*
27 Paddington 2 (18)
28 Buffy the Vampire Slayer (92)*
29 Shoplifters (18)
30 Blindspotting (18) jacked Ethan Embry in a supporting role?! Whither? Howso? Wherefore?
31 Witness (85)
32 Harry & the Hendersons (87)*
33 The Matrix (99)*
34 T2 Trainspotting (17)
35 Blockers (18)
36 The Slums of Beverly Hills (98)
37 Can’t Hardly Wait (98)*
38 Avengers: Infinity War (18)
39 Iron Man II (10)
40 Isle of Dogs (18)
41 Chinatown (74)*
42 To Live & Die in LA (85)
43 Age of Innocence (93) Daniel Day-Lewis manages to make Newland Archer compelling, where in the novel he’s...the worst?!
44 Shopgirl (05)*
45 The House (17) didn’t sustain all the way through, but then, that’s how mainstream comedies often go.
46 The Beguiled (17)
47 Badlands (73)*
48 Poetic Justice (93)
49 The Empire Strikes Back (80)*
50 Calibre (18)
51 The Kindergarten Teacher (18)
52 Hounds of Love (17) a nice little Aussie thriller, set in the 80s
53 Kicking & Screaming (95)*
54 Octopussy (83)*
55 Jaws (79)*
56 Lover Come Back (61)
57 Frenzy (72)
58 Always Be My Maybe (19)
59 Certain Women (16) took a while to get to this one, but it’s as great as they say it is.
60 Baby Driver (17) all flash, little substance.
61 Sneakers (92)
62 Roadhouse (87)*
63 Bull Durham (88)*
64 Ghostbusters (84)*
65 Booksmart (19) I think this will improve on multiple viewings, though I loved the soundtrack and the mix of characters.
66 Hereditary (18)
67 Rebecca (40) George Sanders as Rebecca’s cousin is BRILLIANT
68 Vertigo (58)*
69 The Dead Don’t Die (19)
70 Crawl (19)
71 Dazed & Confused (93)* If you don’t watch this once a summer, what is wrong with you?
72 Jackie Brown (97)
73 Talk Radio (88)
74 The Guilty (18)
75 Killing Heydrich (17)
76 Lady Bird (17)*
77 Billy Elliot (00)*
78 White House Down (13)* Channing Potatum saves the White House!
79 The Film Worker (17)
80 Whitney (18)
81 Mascot (16)
82 Apocalypse Now (79)* technically I’d only seen the Redux version from the early 2000s, so the regular cut is new to me.
83 Apollo 13 (95)*
84 Psycho 2 (83) the twist is very guessable, but there are a couple of nice-looking scenes.
85 Eternal Sunshine of the Spotless Mind (04)*
86 The Bodyguard (92)*
87 Murder Mystery (19)
88 Wildlife (18)
89 The Stepford Wives (75)*
90 Willy Wonka & the Chocolate Factory (71)*
91 The Natural (84)
92 The Other Boleyn Girl (08)
93 Speed (94)*
94 Opera (87)
95 That’s my Boy (12) haha what?!
96 The Big Short (15)
97 Elizabeth the Golden Age (07)
98 The Glass Castle (17) when I read the book, I genuinely thought it was fiction, it’s so insane.
99 Dawn of the Dead (78)*
100 All About Eve (50) lady on lady violence is a special thing
101 La La Land (16)
102 Morning Glory (10) remember Rachel McAdams?
103 Casino (95)*
104 Talladega Nights: The Ballad of Ricky Bobby (06)
105 Pet Sematary (19)
106 Clue (85)*
107 Her Smell (18) amazing soundtrack and the songs were well-chosen. Heartbreaking musical moment in the final act.
108 Bobby Sands: 66 Days (16)
109 She’s Gotta Have it (86)
110 Good Morning (59)
111 Hustlers (19) I didn’t connect with this as much as the reviews led me to believe I might.
112 Nocturnal Animals (16)
113 Kill Bill Vol 1 (03) I’d only ever seen the second one before, being a non-Tarantino completionist.
114 Fried Green Tomatoes (91)* I watch this more than anticipated...
115 Steel Magnolias (89)
116 Notting Hill (99)*
117 A Beautiful Day in the Neighborhood (19) the tiny city models were inspired!
118 National Lampoon’s Christmas Vacation (89)*
119 Let It Snow (19)
120 Frozen (13)
121 The Irishman (19) most interesting as a sort of pastiche/reckoning on the part of Scorsese about his other gangster films. Really outmoded view of unions. Definitely could have been edited down if anyone were able to come to it without undue reverence, but I did love the bit about the fish.
122 Girls Trip (17) actual plot is beside the point.
123 About a Boy (02)* I always think of this as the “vomit and sweaters” movie, anyone else?
124 Animal House (78)*
DOCUMENTARY : FICTION - 4:120
THEATRE : HOME - 9:115
TV Series
01 Russian Doll - I think I would have enjoyed this more if it hadn’t been bingeable - would have made a nice week-by-week discussion sort of show. I loved to watch the changes between re-ups of our major characters, and I think the actual plotting would reward re-watches.
02 Catastrophe S4 - A satisfying ending to an excellent show, with very charismatic leads (and deeply weird supporting characters). Had to write around Carrie Fisher’s death, and I’m sure did a better job of it than Star Wars did.
03 Friends from College S2 - More of the same, which is what I was after. A show like cotton candy (but with more infidelity).
04 High Maintenance S3 - A lot more of this season took place outside of New York City, which was a great change of pace. And a great deal more information about The Guy and his own life; both difficulties and successes included.
05 Losers - This was a great little docuseries on Netflix that I didn’t hear a lot of people talking about - it’s about sports losses, but unusual sports ie curling, figure skating and the like. You’d think it would get repetitive, being as it’s always about recovering after loss, but it doesn’t! I wish they would make another season….
06 Shrill - a tight six episode dramedy about an alt-weekly journalist in the Pacific Northwest, based on Lindy West’s memoir of the same name. John Cameron Mitchell as her boss (based on Dan Savage) stands out of the ensemble cast, as does Annie’s roommate played by a British standup Lolly Adefope.
07 Broad City S5 - I haven’t always kept up with Broad City, but I came back to it for its final season, and thought it did a good job of setting its characters up for big changes in their lives.
08 I Think You Should Leave - It’s easy to assume that all sketch comedy is terrible and always will be, but then you see this, and throw your TV out the window (due to all the laffs)
09 Fleabag S2 - Everything you’ve heard is true, this season is goddamn hilarious and ridiculously sexy. A huge step up from the first season, which was already pretty fantastic and incisive.
10 Fosse/Verdon - Musicals are not particularly my bag, so I’m sure there was a lot that I missed in terms of references, but the lead performances ably carried me through all of the time jumps and various performances.
11 Stranger Things S3 - Say it after me: d-i-m-i-n-i-s-h-i-n-g r-e-t-u-r-n-s! Maya Hawke kills it, though.
12 Big Little Lies S2 - Unnecessary, and (if possible) even sillier than the first season.
13 Lorena - Part of the ongoing quest to rehabilitate the maligned women of the 1990s, this gave me tons of context that I had no idea about at the time, due to being a dumb kid.
14 Glow S3 - I felt like I was losing steam on this series this year, but episodes like the camping ep kept me coming back. A great ensemble, though some unusual character choices (like a certain kiss *cough*) took me out of it by times.
15 Lodge 49 S1-3 - I’d kept hearing about this show, so I finally sought it out. I can’t say it was amazingly compelling (I almost dropped it after the first season) but it’s definitely an oddball of a show, slipping from setpiece to setpiece with little regard for logic. For me, a background show.
16 Chernobyl - This show really gave me the Bad Feeling, humans were definitely A Mistake.
17 On Becoming a God in Central Florida - Kiki in a trashy mode, not as infinitely appealing as the version she pulled off in the second season of Fargo, but scrappy and industrious nonetheless.
18 Show Me a Hero - I’d put off watching this for years, it felt like it was going to be too dull (housing policy in Yonkers?) but it’s great, and larded up with Bruce Springsteen songs, obvs.
19 Great British Bake Off S9-S10 - I’d also held off on watching this for a long time, out of loyalty to Mel, Sue, and Mary Berry. But I needed some comfort viewing towards the end of the summer, and the new hosts and judge do an able job, although the show’s tropes are feeling a bit well-worn at this point.
20 Righteous Gemstones S1 - A rollicking ride for sure, with a great cast. Your mileage/patience with Danny McBride may vary, so keep that in mind, naturally.
21 This Way Up S1 - A small show starring the fabulous Aisling Bea, about mental health and families and some nice comic physical acting. Oh, and in case you were watching The Crown and crushing on Tobias Menzies’ version of Prince Phillip, he plays a hot dad love interest in this, which gives you all the Tobias you’re looking for, without the PP racisms.
22 The Crown S3 - This is the first season of the big cast switchover, and I thought it stuck reasonably well, once we were in it an episode or two. This season concentrated even less on Elizabeth herself, preferring her sister, husband, and (newly!) her children.
okay, I was searching through @dylanobrienisbatman’s echo tag for some head canons awhile back and stumbled upon this! I’ve tweaked it a little and added some things from S5 and omg this is so fun! thanks to whoever made this ask game! S6 STARTS TONIGHT!
1. What Station on the Ark would you be from?
Farm Station. I grew up in the south and my great/grandparents all owned farms so yeah, probably Farm Station.
2. What would you get arrested for on the Ark?
I think this happened to a character in the book...I would probably get locked up for getting pregnant as a teen! lol
3. Would you take off your wristband when you landed on the ground?
If Bellamy Blake asked me to, you bet I would.
4. What would the necklace Finn would make for you look like? (Clarke: deer/Raven: a raven duh..)
an eagle 🦅
5. If you could resurrect any MINOR character who would it be?
WELLS DESERVED BETTER JAHA
6. Create a squad of 5 characters to go on missions with. Who are they?
The Leaders: Bellamy Blake & Clarke Griffin
The Brains: Raven Reyes & Monty Green
The Muscle : Lincoln kom Trikru
7. What Grounder Clan would you belong to you?
Geographically, I would probably reside in Trikru somewhere. But I really want to live in Shallow Valley. I wish we had seen more of that clan!
8. What would your name be in Trigedasleng? (example: Octavia=Okteivia…just make it up!)
sara - sera ? I don’t know. lol
9. Thoughts on Finn? Some people hate him, and others love him, so I’m curious
He was okay in the beginning. I was pissed when I found out he had a girlfriend in space and was trying to get with Clarke on the ground. I did not like him at all in S2! The guy really lost it in the end.
10. Be honest. How willing would you have been to take the chip without knowing all the horrible things it does?
I would have been able to resist in the beginning. Maybe took a step back to watch others take it first. But peer pressure, man. I would have given in eventually.
11. What character do you relate to most?
Clarke Griffin. She’s been isolated a lot and that’s something I relate to. And her Mama Bear instincts.
12. What character do you like the least?
S1- Finn, S2- Cage Wallace, S3- Pike, S4- Echo, S5- Kara Cooper
13. Describe your delinquent outfit. (Would you wear something like Murphy’s jacket with the spikey red shoulder patch or have a trademark like Jasper’s goggles? Be creative, yet practical)
Clarke’s soda tab jacket or Raven’s red bomber jacket!
14. Favorite type of mutant animal?
The blue butterflies! 🦋
15. What would your job be on the Ark?
A teacher! Teaching Earth History! Oh, that sounds amazing.
16. Would you have willingly pumped Ontari’s heart if Abby asked?
Barf.
17. If Lexa wasn’t Heda, but she was still alive then who would have made the best commander?
Luna. Is there any other answer but Luna?
Nightblood aside, I think Octavia (with Lincoln still alive to influence her) would be a cool choice too.
18. How would you act if you ate the hallucinogenic nuts like Jasper and Monty?
Paranoid af.
19. How would you have dealt with Charlotte’s crime? A more John Murphy approach or Bellamy Blake approach?
Bellamy Blake approach.
20. Who should have been the Chancellor, if anyone?
I don’t care who is the Chancellor, but Clarke Griffin is in charge. lol. Kane was the best leader for Skaikru on the ground.
21. Would you have been on Pike’s side like Bellamy or on Kane’s side? Or Clarke in Polis?
Kane’s side! Viva la revolución!
22. Mount Weather had a lot of modern commodities. (example: Maya’s Ipod) What is the one thing you would snatch while there?
Chocolate. All the chocolate!
23. What would your Grounder tattoos look like? Hairstyle? War paint?
Tattoos: let me get that eagle across my back or on my sternum that I’ve always wanted
Hairstyle: the most epic Harper style braid please
War paint: no thanks
24. Favorite quote?
”In peace, may you leave this shore.
In love, may you find the next.
Safe passage on your travels,
until our final journey to the ground.
May we meet again.”
-The Traveler’s Blessing
Or literally anything Bellamy Blake says. lol
25. If all of the characters were in the Hunger Games, who would have the best shot at winning?
I feel like as unlikely as it is, the show really has Octavia set up as Warrior Princess Goddess Hero and she would win. lol. As far as forming alliances and making it to the end...Clarke Griffin could make it with Bellamy Blake by her side throwing back nighlock berries till the end.
26. Least favorite ship? Favorite canon ship? Favorite non canon ship? NOT INCLUDING CL OR BC OR BE
Least: Mackson
Favorite canon: Zaven
Favorite non-canon: Sea Mechanic
27. A song that should be included in the next season? If there had to be another guest star like Shawn Mendes on the show, who would you want to make a cameo?
Radioactive needs to make another appearance in S6
Musical Guest Star: how about Hozier?
28. What would you do if you were stuck in the bunker with Murphy for all that time?
We’d probably go crazy.
29. Your an extra that gets killed off. How do you die?
Bellamy Blake choking me to death... (can’t believe this took me so long to answer. Is there really any other answer from me?)
30. A character you’d like to learn more about and get flashbacks of?
I would have liked more flashbacks of Roan and Luna and Lincoln. Spacekru on the Ring. Emori? Harper? literally everyone, right?
31. A character you’d bang?
Bellamy Blake. All day. Every day.
32. Would you stay in the Bunker? Go up to Space? Or live on your own in Eden?
SPACE!
33. In the Bunker, would you follow Octavia? What would you do to pass the time underground?
Sure. I don’t think I’d have much of a choice. I’d probably help take care of all the little kids!
34. What crime would you commit in the Bunker that lands you in the fighting pits?
Okay, so the way my life works I would probably get pregnant...again. And steal some blankets or something that I needed for all my kids. I’m not even going to front and say I survive that fighting pit sooo hope Blodreina trains them little squirts well!
35. Up in Space, who would you bond with first? Who would be the most difficult for you to get along with?
I’m instantly bonding with Harper. She’s the sweetest.
I’m going to be a little leary of Bellamy Blake during his Clarke ‘I left her behind’ Griffin Depression hour. So he’s probably really mopey and moody. And let’s just avoid him for a while.
36. How long do you think you would last on Earth by yourself?
Two weeks? I’d probably starve to death.
37. When the Eligius ship lands what do you do?
HIDE! And then spy on them. Figure out who they are and if they’re friendly. Go to them for help if they are. Take them all out in their sleep if they’re not.
38. Favorite Eligius character? Least favorite?
Miles Ezekiel ‘Zeke’ Shaw!
That creepy Kodiak guy.
39. Would you Spacewalk?
Hell yes!
40. Would you prefer to eat Windshield Bugs, Space Algae, or Bunker Meat?
Bugs, definitely bugs.
41. Would you start a war for the last spot of green on earth? What would your solution be to avoid it?
I’d fight for it.
42. Would you rather dig out flesh-eating worms or stick thumb drives into bullet holes?
BAND-AIDS DON’T FIX BULLET HOLES — AND NEITHER DO THUMB DRIVES. That was such a clever move. I’m going with thumb drives over worms. I hate the worm scene. gross!
43. Are you willing to poison your sister for the Traitor Who You Love? What would you do to stop Octavia?
I’m not a big fan of my sister, so yes. Was there any easier way to stop Octavia? I mean, Clarke wanted to kill her. They wanted to protect Madi. As much as that scene pained me I think Bellamy did the right thing soooo I would poison her.
44. Would you go to sleep in cryo or stay awake like Marper?
Stay asleep. Unless I’m living my entire life with Bellamy Blake by my side I dont want it.
45. Who are you waking up first to explore the new planet?
JR isn’t going to give it to us so I’m waking up Octavia so her and Jordan can have a First One on the Ground Pilot parallel!
you may have already done this so I’m sorry! But the bottom questions are new!
I stole this ask game from @thelittlefanpire because it looked fun!
1. What Station on the Ark would you be from?
Probably Mecha Station tbh - my dad and grandpa are mechanics so it’d make the most sense
2. What would you get arrested for on the Ark?
Probably for talking shit to an official/council member or for stealing something
3. Would you take off your wristband when you landed on the ground?
I’d take it off in exchange for food yeah
4. What would the necklace Finn would make for you look like? (Clarke: deer/Raven: a raven duh..)
An otter? idk
5. If you could resurrect any MINOR character who would it be?
Harper McIntyre my girl
6. Create a squad of 5 characters to go on missions with. Who are they?
Bellamy, Clarke, Raven, Murphy, Miller
7. What Grounder Clan would you belong to you?
Floukru 100%
8. What would your name be in Trigedasleng? (example: Octavia=Okteivia…just make it up!)
ashley = ashlee ???
9. Thoughts on Finn? Some people hate him, and others love him, so I’m curious
See i thought he was annoying from the start and that smth wasn’t right with him and when it was revealed that he was cheating on Raven/Clarke I instantly didn’t like him.
10. Be honest. How willing would you have been to take the chip without knowing all the horrible things it does?
I have a hip injury (kinda like Raven’s) that causes me pain sometimes so if i was told that the chip would take that pain away permanently i would absolutely take it
11. What character do you relate to most?
I have never related to a character more than i relate to Clarke Griffin - especially in season 5 and what i can tell from season 6.
12. What character do you like the least?
s1: Finn
S2: Cage
S3: Pike
S4: Echo/Jaha
S5: Octavia/Echo
13. Describe your delinquent outfit. (Would you wear something like Murphy’s jacket with the spikey red shoulder patch or have a trademark like Jasper’s goggles? Be creative, yet practical)
Probably a bomber jacket, jeans, combat boots, and like some cool finger-less gloves idk
14. Favorite type of mutant animal?
the butterflies ?? other than those and the two headed deer there weren’t really any other mutant animals shown
15. What would your job be on the Ark?
A teacher since thats what i’m in school for now
16. Would you have willingly pumped Ontari’s heart if Abby asked?
In the circumstances? yeah. Any other time? hell no
17. If Lexa wasn’t Heda, but she was still alive then who would have made the best commander?
Luna 100%
18. How would you act if you ate the hallucinogenic nuts like Jasper and Monty?
Spacey af
19. How would you have dealt with Charlotte’s crime? A more John Murphy approach or Bellamy Blake approach?
Bellamy’s approach
20. Who should have been the Chancellor, if anyone?
I think Kane is definitely the best chancellor but lbr Clarke and Bellamy were in charge
21. Would you have been on Pike’s side like Bellamy or on Kane’s side? Or Clarke in Polis?
Kane’s side duh
22. Mount Weather had a lot of modern commodities. (example: Maya’s Ipod) What is the one thing you would snatch while there?
the music ie an ipod, books or art supply
23. What would your Grounder tattoos look like? Hairstyle? War paint?
Tattoos: i’d probably have the flourku symbol on my shoulder or back of my neck
Hairstyle: probs like a french braid or smth
War paint: no warpaint for me
24. Favorite quote?
“For all its faults, earth is really beautiful.”
“Who we are and who we need to be to survive are very different things”
25. If all of the characters were in the Hunger Games, who would have the best shot at winning?
Octavia would be the obvious choice in terms of physicality, Raven would have a huge shot because of her brain, and then Clarke and Bellamy would probably make it to the end together and then pull a Katniss and Peeta.
26. Least favorite ship? Favorite canon ship? Favorite non canon ship? NOT INCLUDING CL OR BC OR BE
Least: Mackson
Favorite canon: Briller
Favorite non-canon: Sea Mechanic
27. A song that should be included in the next season? If there had to be another guest star like Shawn Mendes on the show, who would you want to make a cameo?
Hozier needs to guest star and sing some sweet faerie bog music
and i think Bootstraps cover of Stand By Me would make for a beautiful scene between the remaining delinquents
28. What would you do if you were stuck in the bunker with Murphy for all that time?
Go crazy since it didn’t seem like he had a lot to do lol
29. Your an extra that gets killed off. How do you die?
Probably doing something stupid - i’d 100% die in season 1
30. A character you’d like to learn more about and get flashbacks of?
I would have liked more flashbacks of the delinquents on the Ark and maybe some of spacekru
31. A character you’d bang?
Bellamy Blake
32. Would you stay in the Bunker? Go up to Space? Or live on your own in Eden?
If Octavia wasn’t in charge and they didnt turn to cannibalism probably the bunker but considering all factors definitely space
33. In the Bunker, would you follow Octavia? What would you do to pass the time underground?
I wouldn’t really have a choice but to follow her lol - and idk i’d probably teach or help out with the children
34. What crime would you commit in the Bunker that lands you in the fighting pits?
Probably just for talking back to Octavia or someone - or for refusing to participate in warrior training lol
35. Up in Space, who would you bond with first? Who would be the most difficult for you to get along with?
I’d bond with Harper first definitely - i would probably have trouble bonding with Echo or maybe Bellamy just because of his post-Clarke isolation
36. How long do you think you would last on Earth by yourself?
not long at all lol - i’d die of starvation and dehydration
37. When the Eligius ship lands what do you do?
Watch them and see what their deal is - decide whether they are useful/friendly and then make a decision from there
38. Favorite Eligius character? Least favorite?
Zeke or Diyoza are my favourites and McCreary is my least favourite
39. Would you Spacewalk?
Probably not lol
40. Would you prefer to eat Windshield Bugs, Space Algae, or Bunker Meat?
Space Algae tbh
41. Would you start a war for the last spot of green on earth? What would your solution be to avoid it?
I’d fight for it but i wouldn’t want a war. Negotiations and peace talks would be my first choice
42. Would you rather dig out flesh-eating worms or stick thumb drives into bullet holes?
thumb drives into bullet holes - seems nasty but not as nasty as digging out the worms
43. Are you willing to poison your sister for the Traitor Who You Love? What would you do to stop Octavia?
Me and my sister are chill so she would have had to do something really terrible for me to poison her - even if its at the expense of someone i love. If i knew that my sister would be fine if i did it then maybe but if there was no guarantee then no.
To stop Octavia i’d probably either do what Bellamy did or just kill her
44. Would you go to sleep in cryo or stay awake like Marper?
Go into cryo - unless i had a really good reason (or person) to stay awake for
45. Who are you waking up first to explore the new planet?
I’d probably go with Clarke, Bellamy, Raven, Murphy, Emori, Zeke, and Miller
I’m tagging @miles-ezekiel and anyone else who wants to do it but hasnt!
just do ALL of them for the ask meme u just rb’d just all of em
wow!! I owe u my life madi thank u I’ll do it
1 favorite moment“tyra is a complete bitch” and all of the s5 untucked2 favorite contestant I mean I’m so up dela’s ass at this point that I just can’t say anyone else (but really I mean she is the best so)3 favorite winner jinkx4 comedy queens or beauty pageant queens comedy queens5 favorite lipsync raven/jujubee in all stars, tatianna/alyssa6 drag rupaul or out of drag rupaulin drag7 favorite s6 queenoohhhh try to guess!!8 most attractive queen out of dragraja, aquaria, adore9 best snatch game impersonation alaska in as2, dela in s6, ginger in s710 favorite seasonsix, as211 favorite runway lookfucking impossible let’s say violet in ep1 of s7 and katya in that split runway idk there’s too many12 jujubee or manilajujubee13 raven or rajaraja14 sharon or jinkxjinkx15 favorite catchphrase by rupaulyour country breakfast is ready 16 best feudalyssa/coco17 favorite s3 queenraja18 dwv or aaa girlsdwv19 favorite challenge I don’t remember how it’s called but in s7 when they did half feminine/half manly runway ahhhh I fucking love that20 favorite “villain”hmm roxxy cause she redeem herself so much21 favorite drag queen songa song to come home to - jinkx22 favorite s1 queen(s1 is the only season I didn’t watched don’t hate me) 23 alyssa edwards or coco montresealyssa24 favorite friendship adore/dela even though it wasn’t shown much on the show 25 favorite top three bianca, adore and courtney26 favorite latrice royale catchphrase every word she says is brilliant 27 willam or alaskaalaska28 least favorite queenacid betty29 funniest queenjinkx and katya30 meanest queendarienne lake 31 favorite s5 queenjinkx32 favorite mini challenge any of them where they don’t show a bunch of naked dudes33 best miss congeniality if I’m being bias as shit - dela and katya, if I’m being reasonable - cynthia lee fontaine34 ___ should have won instead of ___now - raven instead of tyra. but I didn’t thought that at the time 35 favorite shocking moment dela eliminating herself 36 favorite s2 queentatianna and jujubee37 favorite catchphrase by a contestant alyssa’s tongue pop38 michelle visage or santino ricemichelle39 favorite all-stars teamoh wow remember teams in all stars……let’s say fucking pandora and mimi because why not40 least favorite seasonnine, but now that I remember as1….idek41 rolaskatox or the heathers nether 42 sharon/phiphi or jinkx/roxxy feudjinkx/roxxy cause it was so so satisfying in the end43 favorite guest judge johnny weir cause I just love him 44 best drag queen name bob the drag queen45 favorite s7 queenkatya46 favorite entrance by a queen laganja, katya47 adore delano or courtney actadore48 favorite puerto rican contestant april carrion49 favorite s4 queenchad michaels50 top three contenders for s7 crown (I guess I should do s10)aquaria, monet, miz cracker/kameron
Data Encryption Standard is a symmetric-key algorithm for the encrypting the data. It comes under block cipher algorithm which follows Feistel structure. Here is the block diagram of Data Encryption Standard.
Fig1: DES Algorithm Block Diagram [Image Source: Cryptography and Network Security Principles and Practices 4th Ed by William Stallings]
Explanation for above diagram: Each character of plain text converted into binary format. Every time we take 64 bits from that and give as input to DES algorithm, then it processed through 16 rounds and then converted to cipher text.
Initial Permutation: 64 bit plain text goes under initial permutation and then given to round 1. Since initial permutation step receiving 64 bits, it contains an 1×64 matrix which contains numbers from 1 to 64 but in shuffled order. After that, we arrange our original 64 bit text in the order mentioned in that matrix. [You can see the matrix in below code]
After initial permutation, 64 bit text passed through 16 rounds. In each round it processed with 48 bit key. That means we need total 16 sub keys, one for each round. See below diagram, it will show what happening in each round of algorithm.
Fig2: Single Round of DES Algorithm. [Image Source: Cryptography and Network Security Principles and Practices 4th Ed by William Stallings]
Round i: In each round 64bit text divided into two 32bit parts. Left and Right. You can see in diagram Li-1 and Ri-1. As algorithm says, Right 32bits goes under Expansion Permutation.
Expansion Permutation: Right side 32bit part of text given to expansion permutation. It will produce a 48bit text as output. i.e. 16bits added in this step. Some bits below 32 are repeated and arranged in an 1×48 matrix form. We rearrange 32bit text by following the order of that matrix. [See the matrix in below code]
After expansion permutation we have to XOR the output 48bit with a 48bit sub key. Let see how that 48bit sub key generating from 64bit original key.
Permutated Choice 1: Initially we take a 64 bit key and then apply to permutated choice 1. It contains a 1×56 matrix but with shuffled 1 to 64 numbers except multiples of number 8. i.e. 8, 16, 24, 32, 40, 48, 56, 64 will be discarded. Remaining 64-8 = 56 number will be there in 1×56 matrix. We rearrange key in matrix specified order. [You can see the matrix in below code]
Left Circular Shift: 56bit key from permutated choice 1 given to left circular shift operation. Here that 56bit key divided into two equal halves of each 28bit. These 28bits shifted depends upon the round number. We already have the data that in each round how many bits circularly we have to shift. You can see this data in shifts array in code.
Permutated Choice 2: Result of Left circular shift 56bit key given to permutated choice 2. This step will produce 48bit sub key. For this it has an 1×48 matrix, in which out of 56, some random 8 bits will be discarded. And remaining 48 will be there. According to this bit positions we have to rearrange the key. You can see this matrix in below code.
Now output of permutated choice 2 will be Xor with output of expansion permutation, which results a 48bit one. This 48bit again reduced to 32bit using Substitution boxes [called S box].
Substitution boxes [S box]: In DES algorithm we have 8 S boxes. Input for S box is 48bit. And output from S box is 32 bit. The input 48 bit will be divided equally to 8 s boxes from s1, s2, … s8. So each s box will get 48/8= 6 bits as input. This Each S box reduce 6 bits to 4 bits. i.e input for each S box is 6 bits and output is 4 bits. Finally, 8*4 = 32 bit. Which is final output of S box operation.
Let see how 6bits converted to 4 bits from S box. S box is an 4×16 matrix containing numbers in range 0 to 15. Take example, assume input 6 bits for S box are 011011. In this first and last bit together represents row number. Since maximum number with two bits is 3, S box also contains 0 to 3 rows total of 4. And middle 4 numbers together represent column number. Since maximum number with 4 bits is 15, S box also contains columns 0 to 15 total of 16. So here first and last bit = 01 i.e. row number 1 and middle 4 bits 1101= 13 i.e. column number 13. So for this input the number positioned at row 1 and column 13 will be picked. As mentioned earlier S box only contains number in range 0 to 15. All can be represented in 4 bits. So picked number 4 bits are output for the S box. See the code for all S boxes.
Permutation: After getting output from all S boxes, we are applying again permutation. Here also a matrix with different arrangements will be there, we have to arrange according to that.
Final XOR: After this permutation, take the left half which initially divided 64bit text to two halves. Do XOR with this permutation output to left 32bit part. This result is new Right part. And Right 32bit part which passed through all permutation will be come as new Left Part. These 2 parts will be the inputs for the second round. Same as keys also, the parts before left shift are next round input keys.
All this explanation for a single round for a 62bit plain text. Like this, it passes through total 16 rounds.
32 bit swap: After completion of 16 rounds, final 64 bits divided into two 32 bit parts and they swap each other.
Inverse Initial Permutation: Here also a matrix will be there, in which bits are just shuffled. No adding or subtracting bits. See the code for this matrix.
Program for DES Algorithm in C
#include <stdio.h> int Original_key [64] = { // you can change key if required 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1 }; int Permutated_Choice1[56] = { 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4 }; int Permutated_Choice2[48] = { 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32 }; int Iintial_Permutation [64] = { 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7 }; int Final_Permutation[] = { 40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2, 42, 10, 50, 18, 58, 26, 33, 1, 41, 9, 49, 17, 57, 25 }; int P[] = { 16, 7, 20, 21, 29, 12, 28, 17, 1, 15, 23, 26, 5, 18, 31, 10, 2, 8, 24, 14, 32, 27, 3, 9, 19, 13, 30, 6, 22, 11, 4, 25 }; int E[] = { 32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18, 19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1 }; int S1[4][16] = { 14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7, 0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0, 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13 }; int S2[4][16] = { 15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10, 3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5, 0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9 }; int S3[4][16] = { 10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, 13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1, 13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7, 1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12 }; int S4[4][16] = { 7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15, 13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9, 10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, 3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14 }; int S5[4][16] = { 2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9, 14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6, 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14, 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3 }; int S6[4][16] = { 12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11, 10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8, 9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6, 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13 }; int S7[4][16]= { 4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1, 13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6, 1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2, 6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12 }; int S8[4][16]= { 13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7, 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2, 7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8, 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11 }; int shifts_for_each_round[16] = { 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 }; int _56bit_key[56]; int _48bit_key[17][48]; int text_to_bits[99999], bits_size=0; int Left32[17][32], Right32[17][32]; int EXPtext[48]; int XORtext[48]; int X[8][6]; int X2[32]; int R[32]; int chiper_text[64]; int encrypted_text[64]; int XOR(int a, int b) { return (a ^ b); } void Dec_to_Binary(int n) { int binaryNum[1000]; int i = 0; while (n > 0) { binaryNum[i] = n % 2; n = n / 2; i++; } for (int j = i - 1; j >= 0; j--) { text_to_bits[bits_size++] = binaryNum[j]; } } int F1(int i) { int r, c, b[6]; for (int j = 0; j < 6; j++) b[j] = X[i][j]; r = b[0] * 2 + b[5]; c = 8 * b[1] + 4 * b[2] + 2 * b[3] + b[4]; if (i == 0) return S1[r][c]; else if (i == 1) return S2[r][c]; else if (i == 2) return S3[r][c]; else if (i == 3) return S4[r][c]; else if (i == 4) return S5[r][c]; else if (i == 5) return S6[r][c]; else if (i == 6) return S7[r][c]; else if (i == 7) return S8[r][c]; } int PBox(int pos, int bit) { int i; for (i = 0; i < 32; i++) if (P[i] == pos + 1) break; R[i] = bit; } int ToBits(int value) { int k, j, m; static int i; if (i % 32 == 0) i = 0; for (j = 3; j >= 0; j--) { m = 1 << j; k = value & m; if (k == 0) X2[3 - j + i] = '0' - 48; else X2[3 - j + i] = '1' - 48; } i = i + 4; } int SBox(int XORtext[]) { int k = 0; for (int i = 0; i < 8; i++) for (int j = 0; j < 6; j++) X[i][j] = XORtext[k++]; int value; for (int i = 0; i < 8; i++) { value = F1(i); ToBits(value); } } void expansion_function(int pos, int bit) { for (int i = 0; i < 48; i++) if (E[i] == pos + 1) EXPtext[i] = bit; } void cipher(int Round, int mode) { for (int i = 0; i < 32; i++) expansion_function(i, Right32[Round - 1][i]); for (int i = 0; i < 48; i++) { if (mode == 0) XORtext[i] = XOR(EXPtext[i], _48bit_key[Round][i]); else XORtext[i] = XOR(EXPtext[i], _48bit_key[17 - Round][i]); } SBox(XORtext); for (int i = 0; i < 32; i++) PBox(i, X2[i]); for (int i = 0; i < 32; i++) Right32[Round][i] = XOR(Left32[Round - 1][i], R[i]); } void finalPermutation(int pos, int bit) { int i; for (i = 0; i < 64; i++) if (Final_Permutation[i] == pos + 1) break; encrypted_text[i] = bit; } void Encrypt_each_64_bit (int plain_bits []) { int IP_result [64] , index=0; for (int i = 0; i < 64; i++) { IP_result [i] = plain_bits[ Iintial_Permutation[i] ]; } for (int i = 0; i < 32; i++) Left32[0][i] = IP_result[i]; for (int i = 32; i < 64; i++) Right32[0][i - 32] = IP_result[i]; for (int k = 1; k < 17; k++) { // processing through all 16 rounds cipher(k, 0); for (int i = 0; i < 32; i++) Left32[k][i] = Right32[k - 1][i]; // right part comes as it is to next round left part } for (int i = 0; i < 64; i++) { // 32bit swap as well as Final Inverse Permutation if (i < 32) chiper_text[i] = Right32[16][i]; else chiper_text[i] = Left32[16][i - 32]; finalPermutation(i, chiper_text[i]); } for (int i = 0; i < 64; i++) printf("%d", encrypted_text[i]); } void convert_Text_to_bits(char *plain_text){ for(int i=0;plain_text[i];i++){ int asci = plain_text[i]; Dec_to_Binary(asci); } } void key56to48(int round, int pos, int bit) { int i; for (i = 0; i < 56; i++) if (Permutated_Choice2[i] == pos + 1) break; _48bit_key[round][i] = bit; } int key64to56(int pos, int bit) { int i; for (i = 0; i < 56; i++) if (Permutated_Choice1[i] == pos + 1) break; _56bit_key[i] = bit; } void key64to48(int key[]) { int k, backup[17][2]; int CD[17][56]; int C[17][28], D[17][28]; for (int i = 0; i < 64; i++) key64to56(i, key[i]); for (int i = 0; i < 56; i++) if (i < 28) C[0][i] = _56bit_key[i]; else D[0][i - 28] = _56bit_key[i]; for (int x = 1; x < 17; x++) { int shift = shifts_for_each_round[x - 1]; for (int i = 0; i < shift; i++) backup[x - 1][i] = C[x - 1][i]; for (int i = 0; i < (28 - shift); i++) C[x][i] = C[x - 1][i + shift]; k = 0; for (int i = 28 - shift; i < 28; i++) C[x][i] = backup[x - 1][k++]; for (int i = 0; i < shift; i++) backup[x - 1][i] = D[x - 1][i]; for (int i = 0; i < (28 - shift); i++) D[x][i] = D[x - 1][i + shift]; k = 0; for (int i = 28 - shift; i < 28; i++) D[x][i] = backup[x - 1][k++]; } for (int j = 0; j < 17; j++) { for (int i = 0; i < 28; i++) CD[j][i] = C[j][i]; for (int i = 28; i < 56; i++) CD[j][i] = D[j][i - 28]; } for (int j = 1; j < 17; j++) for (int i = 0; i < 56; i++) key56to48(j, i, CD[j][i]); } int main(){ char plain_text[] = "tomarrow we wiil be declaring war"; convert_Text_to_bits(plain_text); key64to48(Original_key); // it creates all keys for all rounds int _64bit_sets = bits_size/64; printf("Decrypted output is\n"); for(int i=0;i<= _64bit_sets ;i++) { Encrypt_each_64_bit (text_to_bits + 64*i); } return 0; }
Output
Decrypted output is
0000111001101001001100011010111010010110111010111111111000010111001011111011111101010011011101011011000000111011100100000010110101000101011000011001000000101000001010011110101001011000111010011001110010110011011110110001101110000000001000001001000110111010
The post Data Encryption Standard (DES) Algorithm appeared first on The Crazy Programmer.