Stanford Security Lunch
Common Lunch Encoding

Get announcements:


At the request of one of the crypto grad students, we will encrypt the security lunch food selection before posting it on the website. The method of encryption will change from quarter to quarter, but we thought it would make sense to fix a standard encoding of the plaintext (food selection). Thus was born the Common Lunch Encoding.

We will encode the plaintext (food selection) using the scheme in the following table. Since we want to keep the option of encoding foods in either 8-bit bytes or elements of F251 (i.e., integers mod 251), we do not use the elements above 250.

Common Lunch Encoding Table (v0.1)


    0x00 | 000 | [Reserved for future use]
    0x01 | 001 | Afghan
    0x02 | 002 | African
    0x03 | 003 | American (New)
    0x04 | 004 | American (Traditional)
    0x05 | 005 | Arabian
    0x06 | 006 | Argentine
    0x07 | 007 | Armenian
    0x08 | 008 | Asian Fusion
    0x09 | 009 | Australian
    0x0a | 010 | Austrian
    0x0b | 011 | Bangladeshi
    0x0c | 012 | Barbeque
    0x0d | 013 | Basque
    0x0e | 014 | Belgian
    0x0f | 015 | Brasseries
    0x10 | 016 | Brazilian
    0x11 | 017 | Breakfast & Brunch
    0x12 | 018 | British
    0x13 | 019 | Buffets
    0x14 | 020 | Burgers
    0x15 | 021 | Burmese
    0x16 | 022 | Cafes
    0x17 | 023 | Cafeteria
    0x18 | 024 | Cajun/Creole
    0x19 | 025 | Cambodian
    0x1a | 026 | Cantonese
    0x1b | 027 | Caribbean
    0x1c | 028 | Catalan
    0x1d | 029 | Cheesesteaks
    0x1e | 030 | Chicken Wings
    0x1f | 031 | Chinese (Hunan)
    0x20 | 032 | Chinese (Szechuan)
    0x21 | 033 | Colombian
    0x22 | 034 | Comfort Food
    0x23 | 035 | Creperies
    0x24 | 036 | Cuban
    0x25 | 037 | Czech
    0x26 | 038 | Delis
    0x27 | 039 | Dim Sum
    0x28 | 040 | Diners
    0x29 | 041 | Dominican
    0x2a | 042 | Egyptian
    0x2b | 043 | Ethiopian
    0x2c | 044 | Falafel
    0x2d | 045 | Fast Food
    0x2e | 046 | Filipino
    0x2f | 047 | Fish & Chips
    0x30 | 048 | Fondue
    0x31 | 049 | Food Court
    0x32 | 050 | Food Stands
    0x33 | 051 | French
    0x34 | 052 | Gastropubs
    0x35 | 053 | German
    0x36 | 054 | Gluten-Free
    0x37 | 055 | Greek
    0x38 | 056 | Haitian
    0x39 | 057 | Halal
    0x3a | 058 | Hawaiian
    0x3b | 059 | Himalayan/Nepalese
    0x3c | 060 | Hot Dogs
    0x3d | 061 | Hot Pot
    0x3e | 062 | Hungarian
    0x3f | 063 | Iberian
    0x40 | 064 | Indian
    0x41 | 065 | Indonesian
    0x42 | 066 | Irish
    0x43 | 067 | Italian
    0x44 | 068 | Japanese
    0x45 | 069 | Korean
    0x46 | 070 | Kosher
    0x47 | 071 | Laotian
    0x48 | 072 | Latin American
    0x49 | 073 | Lebanese
    0x4a | 074 | Live/Raw Food
    0x4b | 075 | Malaysian
    0x4c | 076 | Mediterranean
    0x4d | 077 | Mexican
    0x4e | 078 | Middle Eastern
    0x4f | 079 | Modern European
    0x50 | 080 | Mongolian
    0x51 | 081 | Moroccan
    0x52 | 082 | Pakistani
    0x53 | 083 | Persian/Iranian
    0x54 | 084 | Peruvian
    0x55 | 085 | Pizza (Patxi's)
    0x56 | 086 | Pizza (Pizza My Heart)
    0x57 | 087 | Polish
    0x58 | 088 | Portuguese
    0x59 | 089 | Puerto Rican
    0x5a | 090 | Russian
    0x5b | 091 | Salad
    0x5c | 092 | Salvadoran
    0x5d | 093 | Sandwiches
    0x5e | 094 | Scandinavian
    0x5f | 095 | Scottish
    0x60 | 096 | Seafood
    0x61 | 097 | Senegalese
    0x62 | 098 | Shanghainese
    0x63 | 099 | Singaporean
    0x64 | 100 | Slovakian
    0x65 | 101 | Soul Food
    0x66 | 102 | Soup
    0x67 | 103 | South African
    0x68 | 104 | Southern
    0x69 | 105 | Spanish
    0x6a | 106 | Steakhouses
    0x6b | 107 | Sushi Bars
    0x6c | 108 | Szechuan
    0x6d | 109 | Taiwanese
    0x6e | 110 | Tapas Bars
    0x6f | 111 | Tapas/Small Plates
    0x70 | 112 | Tex-Mex
    0x71 | 113 | Thai
    0x72 | 114 | Trinidadian
    0x73 | 115 | Turkish
    0x74 | 116 | Ukrainian
    0x75 | 117 | Vegan
    0x76 | 118 | Vegetarian
    0x77 | 119 | Venezuelan
    0x78 | 120 | Vietnamese
    0x79 | 121 | [Reserved for future use]
        ...    
    0xfa | 250 | [Reserved for future use]
    0xfb |   [Unused]
        ...    
    0xff |   [Unused]