James Hughes har implementerat kryptot SMS4, vilket används i den Kinesiska standarden för WLAN-säkerhet kallad WAPI. Sättet James har implementerat kryptot är dock en smula ovanligt, han har nämligen implementerat SMS4 i ett kalkylark! James skriver:
Building a reference implementation of a cipher can be an invaluable aid to writing code. Building a cipher in a spreadsheet, while some may suggest is strange, is a valid way to effectively describe a cipher in a visual sense. This has been done before with The Illustrated DES Spreadsheet, it has been done again.With the help of a Chinese document and an english translation by Whitfield Diffie and George Ledin, I was able to create a spreadsheet that demonstrates the SMS4 algorithm.
Implementationen finns både för Apples Numbers och i Excelformat.
Jag testade att ladda in och köra sms4.xls i NeoOffice 2.2.5 (NeoOffice är en port av OpenOffice.org för Mac) och det fungerade alldeles utmärkt. Ändrade jag nyckel eller indata utördes (vad jag antar vara) SMS4-beräkningarna.
... Och jag som tyckte att implementera krypton i Python var lite udda…
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
