sábado, 26 de setembro de 2009

A Stick Figure Guide to the Advanced Encryption Standard (AES)

via Moserware by Jeff Moser on 9/26/09

(A play in 4 acts. Please feel free to exit along with the stage character that best represents you. Take intermissions as you see fit. Click on the stage if you have a hard time seeing it. If you get bored, you can jump to the code. Most importantly, enjoy the show!)

Act 1: Once Upon a Time...

introsadaes act 1 scene 03 cinderellaaes act 1 scene 04 startedaes act 1 scene 05 judgeaes act 1 scene 06 nbs decreeaes act 1 scene 07 luciferaes act 1 scene 08 anoint desaes act 1 scene 09 des ruledaes act 1 scene 10 des defeatedaes act 1 scene 11 triple desaes act 1 scene 12 nist decreeaes act 1 scene 13 ralliedaes act 1 scene 14 rijndaelaes act 1 scene 15 voteaes act 1 scene 16 wonaes act 1 scene 17 intelaes act 1 scene 18 crypto question

Act 2: Crypto Basics

aes act 2 scene 01 three big ideasaes act 2 scene 02 confusionaes act 2 scene 03 diffusionaes act 2 scene 04 key secrecyaes act 2 scene 05 aes details question

Act 3: Details

aes act 3 scene 01 sign thisaes act 3 scene 02 agreementaes act 3 scene 03 state matrixaes act 3 scene 04 initial roundaes act 3 scene 05 xor tributeaes act 3 scene 06 key expansion part 1aes act 3 scene 07 key expansion part 2aaes act 3 scene 08 key expansion part 2baes act 3 scene 09 key expansion part 3aes act 3 scene 10 intermediate round startaes act 3 scene 11 substitute bytesaes act 3 scene 12 shift rowsaes act 3 scene 13 mix columnsaes act 3 scene 14 add round keyaes act 3 scene 15 final roundaes act 3 scene 16 more rounds the merrieraes act 3 scene 17 tradeoffsaes act 3 scene 18 security marginaes act 3 scene 19 in picturesaes act 3 scene 20 decryptingaes act 3 scene 21 modesaes act 3 scene 22 questions what really happensaes act 3 scene 23 math

Act 4: Math!

aes act 4 scene 01 algebra classaes act 4 scene 02 reviewing the basicsaes act 4 scene 03 algebra coefficientsaes act 4 scene 04 remember multiplication growthaes act 4 scene 05 cant go biggeraes act 4 scene 06 clock mathaes act 4 scene 07 clock math polynomialsaes act 4 scene 08 divide by mxaes act 4 scene 09 logarithmsaes act 4 scene 10 using logarithmsaes act 4 scene 11 polynomial as byteaes act 4 scene 12 byte operationsaes act 4 scene 13 byte inversesaes act 4 scene 14 sbox mathaes act 4 scene 15 round constantsaes act 4 scene 16 mix columns mathaes act 4 scene 17 crib sheetaes act 4 scene 18 got it nowaes act 4 scene 19 so much moreaes act 4 scene 20 gotta goaes act 4 scene 21 the end

Epilogue

I created a heavily-commented AES/Rijndael implementation to go along with this post and put it on GitHub. In keeping with the Foot-Shooting Prevention Agreement, it shouldn't be used for production code, but it should be helpful in seeing exactly where all the numbers came from in this play. Several resources were useful in creating this:

Please leave a comment if you notice something that can be better explained.

Update #1: Several scenes were updated to fix some errors mentioned in the comments.
Update #2: By request, I've created a slide show presentation of this play in both PowerPoint and PDFformats. I've licensed them under the Creative Commons Attribution License so that you can use them as you see fit. If you're teaching a class, consider giving extra credit to any student giving a worthy interpretive dance rendition in accordance with the Foot-Shooting Prevention Agreement.


Things you can do from here:

Freddie Exec Compensation, Bandos, Market and more

via Calculated Risk by CalculatedRisk on 9/25/09

Michelle at Footnoted.org digs up the employment contract for Freddie Mac's new CFO: Taxpayer funded signing bonus at Freddie Mac?
• annual compensation of $3.5 million (this includes $675K in salary, $1.6 million in something called “additional annual salary” and $1.1 million in a target incentive
• a $1.95 million signing bonus
• immediate buyout of Kari’s house
Why is Freddie paying more than the private sector? And I bet Geithner is jealous about the house deal!

Stock Market CrashesClick on graph for larger image in new window.

This graph is from Doug Short of dshort.com(financial planner): "Four Bad Bears".

Note that the Great Depression crash is based on the DOW; the three others are for the S&P 500.

And the Bandos are moving on up in Miami! From nbcphiladelphia.com: After Miami's Ritzy Bubble Bursts, Squatters Move on Up
Miami's squatter problem has garnered national media attention over the past year and a half, as the foreclosure crisis threatened to transform the Magic City into something resembling a lawless, "Mad Max"-esque landscape.

The squatters mostly kept a low profile, moving in ... to neighborhoods where they could take over unnoticed.

But now come reports that squatters are seeking out more ritzy neighborhoods, including the pricey, tree-lined streets of Coral Gables.
...
A check of county records found that the home went into foreclosure over a year ago, just about the time residents said the alleged squatters showed up.

The bank which owns the property hired a realtor to sell it last month ...
Maybe the lenders should sell the foreclosed homes?

And from the LA Times: Calls to renew home buyer tax credit get louder in Washington. Yeah, an expensive, poorly targeted tax credit for those not suffering during the recession. This isn't as dumb as allowing the FHA DAP to continue (Downpayment Assistance Program - the poster child for bad housing policy), but close. Why not a "first-time renters" tax credit for anyone who hasn't rented for 3 years? That makes as much economic sense.

Things you can do from here:

Upload MP3 To YouTube with Mp32Tube

Upload MP3 To YouTube with Mp32Tube: "

If you have tried uploading your MP3 files to YouTube, then you might know that YouTube does not support this feature. If you want to upload any MP3 file, then it needs to be converted to video format before uploading. Mp32Tube is a free service which allows you to upload MP3 files to YouTube through its interface. You don’t have to convert to any video format, only upload the MP3 file through Mp32Tube.


Mp32tube


With Mp32Tube, you can select any MP3 file and then use an image as background. The background can be uploaded from your PC and it needs to be in .JPG format. You can upload the MP3 either to Mp32Tube’s account or to your account. If you want to upload to your account, you need to authenticate with your YouTube account.


Mp32Tube settings


Mp32Tube is a free service for uploading MP3 files with a background to YouTube. Mp32Tube plans to have a premium paid account with more features.


Mp32Tube Home Page




"

segunda-feira, 14 de setembro de 2009

14 Great Cheat Sheets & Posters to Make You a Software Wizard

14 Great Cheat Sheets & Posters to Make You a Software Wizard: "

It is a known fact that if you want to commit something to memory, continuous revision is the key. You read something every time you are at your desk and within days it becomes second nature.


To be able to revise quickly and often, it helps if the information is terse and to the point highlighting only the important aspects. Something like an application cheat sheet or a poster that you can print and pin to a board or keep on your desk.


Here are some application cheat sheets for commonly used software that will hopefully make you more productive.


Microsoft Office


Need to get that report typed and formatted quickly? Can’t find your way around the ribbon interface? Check these out:









Explains the ribbon interface, smart shapes, which format to choose and how to do things like adding a digital signature, protecting the document and other little tips. (Download)





















Excel 2007 (Download)Word 2007 (Download)
PowerPoint 2007 (Download)Outlook 2007 (Download)

If you are interested in other Office applications or different version of Microsoft Office, Customguide is a great resource.


Browsers


Browsers are among most commonly used software these days. You may be using Firefox or Chrome or Opera or even Internet Explorer, the bottomline is you need to get online and browsers help you in doing so. It is always nice to know your browser inside out and have some tricks up your sleeves, here are some cheat sheets that should get you started:


Google Chrome









Contains keyboard shortcuts, command line switches and the about:urls (Go there) (PDF)

Firefox









Contains keyboard shortcuts, highlights important directories related to Firefox, and presents a trick or two. It has not been updated for a long time but the information still stands good for Firefox 3.5 (Go there) ( PDF )

Linux











This is a huge 18 x 18 in poster that presents you – “The Anatomy of a Linux System”. It has a plethora of information about Linux, top Linux magazines, top Linux sites. In addition, it lists the popular software on Linux systems along with the sites and useful books (it’s from O’Reilly after all) on each of them. (More) (Download)








Lists commonly used commands, switches and what they do. Good for beginners. (Download)








Looking for something a little more advanced? Linux Administrator’s Quick Reference card has you covered with the important files and commands you need to know for system administration. (Download) Credit: Jialong He

Vi/Vim









One of my personal favorites, I actually learned Vim way back using this. It is a complete tutorial and apart from the all inclusive version, there are ones for individual chapters. You can download the SVG versions and scale them to make a wallpaper if you like! (Download)


Photoshop









Concisely lists all the common Photoshop shortcuts you should know to make your work easier and faster. (Download for CS4) (Other Photoshop Versions)

Twitter


Twitter finds its way into everything these days, how could we not have a reference sheet for Twitter?









Packed with all kinds of information about Twitter including important pages, desktop clients, widgets and apps, a definition of various Twitter buzzwords and ethics! (Download)

Search Engine Optimization (SEO)









It has tons of information on what to include in tags, redirects, sitemap syntax, robots.txt syntax and much more. Presents lots of useful information in a tiny little booklet. A must for anyone working with SEO. (Download)

Looking for more?


I bet you are. Didn’t find the one you were looking for? Well there were too many of them to fit in one post. If you are looking for a specific application cheat sheet fire up the request in the comments section, someone might drop you a link. There are two great resources for posters and cheat sheets here and here. If you ever created one for yourself we would love to see them too!


Plus, don’t forget that MakeUseOf have our very own cheat sheets. Click here to check them out and if you like them, download them for free!

Did you like the post? Please do share your thoughts in the comments section!


New on Twitter ? Now you can follow MakeUseOf on Twitter too.



Related posts






"

Minha lista de blogs