项目作者: JacobGrisham

项目描述 :
Encryption Program.
高级语言: C
项目地址: git://github.com/JacobGrisham/Encryption-Arrays-using-C.git
创建时间: 2020-10-28T23:36:42Z
项目社区:https://github.com/JacobGrisham/Encryption-Arrays-using-C

开源协议:MIT License

下载


Encryption: Arrays using C

Homework from Harvard’s Introduction to Computer Science CS50 hosted on eDX

🎓 Problem Set 2

  • Caesar: Encryption by shifting each characters in each word that is inputted via command line
  • I wrote most of the code in each file. No code was provided by the instructor.

Caesar Program Demo

💡Lessons Learned

  • Working with ASCII values, which is one step above binary code (lowest level)
  • Strings are an abstraction for an array of characters
  • Applying knowledge of null terminating character at end of array of characters
  • Copying arrays from one to another
  • Adding command line arguments

🕹 How to Use

To run this project locally:

  • In your terminal, navigate to the root directory of this project and run the following commands
    1. $ clang -o caesar caesar.c
    2. $ ./caesar 13
    Where 13 is the number of ASCII values that your inputted text is shifted. In other words, it’s the key to unlock the encryption.
    The program will prompt you input your sample text after plaintext:
    1. $ plaintext: hello, world
    The expected result for the above example is
    1. $ ciphertext: uryyb, jbeyq

📝 Lecture Notes

  • printf("/n") creates a new line

📣 Contributions

MichealDim02