Ready to Start Your Career?

By: xorinsomnia
February 9, 2017
Tutorial: Math For Computer Science Security

By: xorinsomnia
February 9, 2017
Hello, Cybrarians!Today we will continue our discussion about Security, as mentioned in Introduction to Computer Science Security, math is the core of security, and as I promised I will try to make this part as simple as possible. Before we start our discussion, I'd like to mention that during this tutorial, you will figure out that there are two categories of required math and they depend on the branches of Cryptographic studies:
- Classic Cryptography require some basic mathematics operation (addition, subtraction, etc..) as we will see in Caesar Cipher,
- On the other-hand, Modern Cryptography requires an advanced level of mathematics (function, log, factorization, etc...) as we will see on (RSA algorithm, HASH, etc..)
- Basic Math
- Advanced Math
- For encryption, you need to shift the letter 3 positions to the left (Addition)
- Ex.1 suppose we have word (cybrary) to encrypt it we recall caesar cipher
so (cybrary) will be (fbeudub)Plain Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ Adding 3 to every letter will give us the cipher text Cipher Text: DEFGHIJKLMNOPQRSTUVWXYZABC
- Ex.1 suppose we have word (cybrary) to encrypt it we recall caesar cipher
- For decryption, you just need to reverse the previous operation by shifting the letter 3 positions to the right(subtraction)
- Ex.1 suppose we have word (VHFXULWB) we want to decrypt it we recall caesar cipher
so (VHFXULWB) will be (SECURITY)Cipher Text: DEFGHIJKLMNOPQRSTUVWXYZABC Subtracting 3 from every letter will give us the plain text Plain Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ
- Ex.1 suppose we have word (VHFXULWB) we want to decrypt it we recall caesar cipher