New The World of The Internet Handouts
New The World of The Internet Handouts
New The World of The Internet Handouts
Introduction to Binary
The binary system is a way of 1011110000011111
representing data using 0s and 1s. This 0010101000100101
system is used by computers to
0101010011111001
0100001001010100
represent all the data it works with.
0010010010101010
0011001011
Decimal System:
The number system we use in everyday life is called the decimal system,
where we use the numbers 1,2,3,4,5,6,7,8,9 to represent all of our numbers.
In this system, each digit is a power of 10.
Digit value
4 3 7 9
103 102 101 100
= 1000 = 100 = 10 = 1
Place value
To compute a number in this system, you would multiply the digit value
by the place value, then add them all together. So to represent the
number 4379, you would have to compute :
(4*1000)+(3*100)+(7*10)+(9*1)=4379.
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Digit value Introduction to Binary 2
0 0 0 0 1 0 0 1
27 26 25 24 23 22 21 20
= 128 = 64 = 32 = 16 = 8 = 4 = 2 = 1
Place value
To compute a number in this system, you would multiply the digit value
by the place value, then add them all together. So to translate the binary
number 1001, you would have to compute:
(1*8)+(0*4)+(0*2)+(1*1) = 9
To convert this number back to binary, find the largest power of 2 and
subtract until your total is 0
9 - ( 1 * 23 ) = 9 - 8 = 1 so 4th digit is 1
22 = 4 > 1 so 3rd digit is 0
21 = 2 > 1 so 2nd digit is 0
1 - ( 1 * 10 ) = 1 - 1 = 0 so 1st digit is 1
27 26 25 24 23 22 21 20
= 128 = 64 = 32 = 16 = 8 = 4 = 2 = 1
Place value
Refer to this for help!
1) 8
2) 17
3) 11
4) 36
5) 70
6) 132
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Introduction to Binary 4
27 26 25 24 23 22 21 20
= 128 = 64 = 32 = 16 = 8 = 4 = 2 = 1
Place value
Refer to this for help!
1) 0 0 1 0
2) 1 1 1 0
3) 1 0 1 1
4) 0 0 1 0 0 0 0 1
5) 0 0 0 1 1 0 1 0
6) 1 0 1 0 1 0 1 0
7)
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
ANSWER KEY Introduction to Binary 5
27 26 25 24 23 22 21 20
= 128 = 64 = 32 = 16 = 8 = 4 = 2 = 1
Place value
Refer to this for help!
1) 8 0 0 0 0 1 0 0 0
2) 17 0 0 0 1 0 0 0 1
3) 11 0 0 0 0 1 0 1 1
4) 36 0 0 1 0 0 1 0 0
5) 70 0 1 0 0 0 1 1 0
6) 132 1 0 0 0 0 1 0 0
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
ANSWER KEY Introduction to Binary 6
27 26 25 24 23 22 21 20
= 128 = 64 = 32 = 16 = 8 = 4 = 2 = 1
Place value
Refer to this for help!
1) 0 0 1 0 2
2) 1 1 1 0 14
3) 1 0 1 1 11
4) 0 0 1 0 0 0 0 1 33
5) 0 0 0 1 1 0 1 0 26
6) 1 0 1 0 1 0 1 0 170
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 7
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 8
(If you did it right, your message before encoding and after
decoding will be the same!)
AB CD E F GH I J K LMNO P QR S TUV WXYZ
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 1
Ciphers!
Ciphers are a way of writing a message in a
secret way (sort of like a secret language!).
Caesar Cipher:
Shifting the alphabet by a number of letters.
Positive number: Shift Right
Negative number: Shift Left
D E F G H I J K L M N O P Q R S
H E L L O K H O O R
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 2
EXAMPLE 2: Encode, KEY = -5
A B C D E F G H I J K L M N O P
V W X Y Z A B C D E F G H I J K
H E L L O C Z G G J
V K K G Z A P P L E
C O D E A B F G H I J K L M N P
H E L L O G A K K N
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 3
Ciphers Practice
Problems
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Ciphers! 4
Ciphers Practice
Problems
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
ANSWER KEY Ciphers! 5
Ciphers Practice
Problems
H I J K LMNOP Q R S T UV WXY Z AB C DE F G
J P W O L Y Z H Y L J V V S !
I T O T A L L Y A G R E E !
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
ANSWER KEY Ciphers! 6
Ciphers Practice
Problems
I S L YM U I P S I G R C T I M F T ?
U S E P A S S W O R D S T O
S T A Y S A F E !
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
The Protocol System 1
Match the layer name to the descriptions below. Then number the
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
ANSWER KEY The Protocol System 2
Match the layer name to the descriptions below. Then number the
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand
Here are some links to activities and information related to the topics discussed in
● https://learningcontent.cisco.com/games/binary/index.html
● https://www.cmu.edu/iso/aware/protect-what-you-connect/malware.html
● https://howsecureismypassword.net/
● https://www.cryptoclub.org/#vIntro
● http://www.carnegiecyberacademy.com/
● https://myshadow.org/
Created for the Leonard Gelfand Center by Vasudha Srinivasan, downloaded from www.cmu.edu/gelfand